mage-ai 0.9.50__py3-none-any.whl → 0.9.51__py3-none-any.whl
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.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/operations/base.py +11 -2
- mage_ai/api/presenters/WorkspacePresenter.py +1 -0
- mage_ai/cluster_manager/kubernetes/workload_manager.py +184 -147
- mage_ai/cluster_manager/workspace/kubernetes.py +25 -3
- mage_ai/data_preparation/executors/block_executor.py +10 -4
- mage_ai/data_preparation/models/global_hooks/models.py +9 -3
- mage_ai/data_preparation/models/pipeline.py +1 -47
- mage_ai/data_preparation/preferences.py +71 -27
- mage_ai/data_preparation/templates/custom/python/default.jinja +3 -5
- mage_ai/io/postgres.py +1 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/4138-1ffb2d1ab4fc61f2.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-221f6ba4b04367c6.js → frontend_dist/_next/static/chunks/pages/manage-41c56c0ae1c15cb6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{gxu21gnSyZ-GtqcWCfQmv → z6eg1yN60N6gosbEr2pGr}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +5 -5
- mage_ai/server/frontend_dist/files.html +5 -5
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-data-products.html +5 -5
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
- mage_ai/server/frontend_dist/global-hooks.html +5 -5
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +5 -5
- mage_ai/server/frontend_dist/manage/settings.html +5 -5
- mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist/manage/users.html +5 -5
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/oauth.html +4 -4
- mage_ai/server/frontend_dist/overview.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +12 -12
- mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist/templates.html +5 -5
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +5 -5
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/frontend_dist/version-control.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/{nkbwVNyttvbUEHU4g3aOV → GkYZIZv7ClhebnBGgTrwO}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1952-0f9a12782f0aaae6.js → 1952-0c8a3cb84da67f53.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2714-68fef54789d7eaeb.js → 2714-1e79e9f2e998b544.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2717-82a714ddff3edf43.js → 2717-e599ab448e3c1b7f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3437-ed09bb896e50e022.js → 3437-0712d7142aed2c46.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-1ffb2d1ab4fc61f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-422429203610c318.js → 4783-1a21d9be47574bba.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-7b8e36634d7d94eb.js → 5896-14e5a23b1c6a0769.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6285-648f9a732e100b2f.js → 6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6798-b904395b0c18647b.js → 6798-1ef0247e65215a0f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-0a8c2c4d7acd957b.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-221f6ba4b04367c6.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-41c56c0ae1c15cb6.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{edit-0cd2a275eb8b6345.js → edit-285ea9b8083b5f22.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-e9c1506c0a1f87b6.js → [run]-15deea898d2fa18b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{settings-495e877aa7ed709e.js → settings-6f5a7e367ec63c43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{preferences-f3c29ec53ee35795.js → preferences-b058d0ff37970cd9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/oauth.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/settings/__init__.py +32 -13
- mage_ai/tests/cluster_manager/kubernetes/test_workload_manager.py +76 -12
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/METADATA +1 -1
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/RECORD +142 -142
- mage_ai/server/frontend_dist/_next/static/chunks/4138-a2c37d37dba2f44c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-a2c37d37dba2f44c.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{gxu21gnSyZ-GtqcWCfQmv → z6eg1yN60N6gosbEr2pGr}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{nkbwVNyttvbUEHU4g3aOV → GkYZIZv7ClhebnBGgTrwO}/_ssgManifest.js +0 -0
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.50.dist-info → mage_ai-0.9.51.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6285],{52136:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(5237),a=e(29989),l=e(81352),f=e(46119),h=e(38469),y=e(12765),p=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,_=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,b=void 0===m?1:m,g=t.strokeDasharray,Z=t.className,O=t.numTicks,E=void 0===O?10:O,T=t.lineStyle,w=t.offset,k=t.tickValues,j=t.children,P=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,p),N=null!=k?k:(0,f.Z)(u,E),R=(null!=w?w:0)+(0,y.Z)(u)/2,S=N.map((function(t,n){var e,i=(null!=(e=(0,h.Z)(u(t)))?e:0)+R;return{index:n,from:new l.Z({x:i,y:0}),to:new l.Z({x:i,y:_})}}));return o.createElement(a.Z,{className:c()("visx-columns",Z),top:e,left:r},j?j({lines:S}):S.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(s.Z,d({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:b,strokeDasharray:g,style:T},P))})))}_.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return s=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)}function a(t){var n=t.children,e=t.data,r=void 0===e?[]:e,a=t.x,l=t.y,f=t.fill,h=void 0===f?"transparent":f,y=t.className,p=t.curve,d=t.innerRef,_=t.defined,v=void 0===_?function(){return!0}:_,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:a,y:l,defined:v,curve:p});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",s({ref:d,className:o()("visx-linepath",y),d:m(r)||"",fill:h,strokeLinecap:"round"},x))}},39309:function(t,n,e){"use strict";e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,s=n.y0,a=n.y1,l=n.defined,f=n.curve,h=(0,i.Z)();return e&&(0,o.Z)(h.x,e),r&&(0,o.Z)(h.x0,r),u&&(0,o.Z)(h.x1,u),c&&(0,o.Z)(h.y,c),s&&(0,o.Z)(h.y0,s),a&&(0,o.Z)(h.y1,a),l&&h.defined(l),f&&h.curve(f),h}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,s=(0,r.Z)();return e&&(0,o.Z)(s.x,e),i&&(0,o.Z)(s.y,i),u&&s.defined(u),c&&s.curve(c),s}},98889:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(39309),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function f(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,f=t.y0,h=t.y1,y=t.data,p=void 0===y?[]:y,d=t.defined,_=void 0===d?function(){return!0}:d,v=t.className,x=t.curve,m=t.innerRef,b=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,a),g=(0,s.SO)({x:e,x0:i,x1:r,y:u,y0:f,y1:h,defined:_,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",l({ref:m,className:c()("visx-area",v),d:g(p)||""},b))}var h=["id","children"];function y(){return y=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y.apply(this,arguments)}function p(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,h);return o.createElement("defs",null,o.createElement("clipPath",y({id:n},i),e))}function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,s=t.defined,a=t.x,l=t.y0,h=t.y1,y=t.aboveAreaProps,_=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(f,{curve:e,data:u,x:a,y1:h,defined:s},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(p,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(p,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},_)),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}p.propTypes={id:r().string.isRequired,children:r().node},_.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){"use strict";var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,s=this._y1,a=i-t,l=o-n,f=c-t,h=s-n,y=f*f+h*h;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(y>r)if(Math.abs(h*a-l*f)>r&&u){var p=i-c,d=o-s,_=a*a+l*l,v=p*p+d*d,x=Math.sqrt(_),m=Math.sqrt(y),b=u*Math.tan((e-Math.acos((_+y-v)/(2*x*m)))/2),g=b/m,Z=b/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*f)+","+(n+g*h)),this._+="A"+u+","+u+",0,0,"+ +(h*p>f*d)+","+(this._x1=t+Z*a)+","+(this._y1=n+Z*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,s,a){t=+t,n=+n,a=!!a;var l=(u=+u)*Math.cos(c),f=u*Math.sin(c),h=t+l,y=n+f,p=1^a,d=a?c-s:s-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+h+","+y:(Math.abs(this._x1-h)>r||Math.abs(this._y1-y)>r)&&(this._+="L"+h+","+y),u&&(d<0&&(d=d%i+i),d>o?this._+="A"+u+","+u+",0,1,"+p+","+(t-l)+","+(n-f)+"A"+u+","+u+",0,1,"+p+","+(this._x1=h)+","+(this._y1=y):d>r&&(this._+="A"+u+","+u+",0,"+ +(d>=e)+","+p+","+(this._x1=t+u*Math.cos(s))+","+(this._y1=n+u*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function s(){var t=c.x,n=null,e=(0,r.Z)(0),s=c.y,a=(0,r.Z)(!0),l=null,f=o.Z,h=null;function y(r){var o,u,c,y,p,d=r.length,_=!1,v=new Array(d),x=new Array(d);for(null==l&&(h=f(p=(0,i.Z)())),o=0;o<=d;++o){if(!(o<d&&a(y=r[o],o,r))===_)if(_=!_)u=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),c=o-1;c>=u;--c)h.point(v[c],x[c]);h.lineEnd(),h.areaEnd()}_&&(v[o]=+t(y,o,r),x[o]=+e(y,o,r),h.point(n?+n(y,o,r):v[o],s?+s(y,o,r):x[o]))}if(p)return h=null,p+""||null}function p(){return(0,u.Z)().defined(a).curve(f).context(l)}return y.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,y):t},y.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),y):t},y.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):n},y.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s=null,y):e},y.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),y):e},y.y1=function(t){return arguments.length?(s=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):s},y.lineX0=y.lineY0=function(){return p().x(t).y(e)},y.lineY1=function(){return p().x(t).y(s)},y.lineX1=function(){return p().x(n).y(e)},y.defined=function(t){return arguments.length?(a="function"===typeof t?t:(0,r.Z)(!!t),y):a},y.curve=function(t){return arguments.length?(f=t,null!=l&&(h=f(l)),y):f},y.context=function(t){return arguments.length?(null==t?l=h=null:h=f(l=t),y):l},y}},97745:function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){"use strict";function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,s=o.Z,a=null;function l(r){var o,u,l,f=r.length,h=!1;for(null==c&&(a=s(l=(0,i.Z)())),o=0;o<=f;++o)!(o<f&&e(u=r[o],o,r))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(u,o,r),+n(u,o,r));if(l)return a=null,l+""||null}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),l):t},l.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),l):n},l.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),l):e},l.curve=function(t){return arguments.length?(s=t,null!=c&&(a=s(c)),l):s},l.context=function(t){return arguments.length?(null==t?c=a=null:a=s(c=t),l):c},l}},98930:function(t,n,e){"use strict";function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})},59739:function(t,n,e){"use strict";var i=e(56669);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,o,u){if(u!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return e.PropTypes=e,e}},47329:function(t,n,e){t.exports=e(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80022:function(t,n,e){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(n,{Z:function(){return i}})},15544:function(t,n,e){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}e.d(n,{Z:function(){return i}})},13692:function(t,n,e){"use strict";e.d(n,{Z:function(){return r}});var i=e(61049);function r(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&(0,i.Z)(t,n)}},93189:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var i=e(12539),r=e(80022);function o(t,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}},61049:function(t,n,e){"use strict";function i(t,n){return i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},i(t,n)}e.d(n,{Z:function(){return i}})}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6285],{52136:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(5237),a=e(29989),l=e(81352),f=e(46119),h=e(88543),y=e(12765),p=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.top,e=void 0===n?0:n,i=t.left,r=void 0===i?0:i,u=t.scale,_=t.height,v=t.stroke,x=void 0===v?"#eaf0f6":v,m=t.strokeWidth,b=void 0===m?1:m,g=t.strokeDasharray,Z=t.className,O=t.numTicks,E=void 0===O?10:O,T=t.lineStyle,w=t.offset,k=t.tickValues,j=t.children,P=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,p),N=null!=k?k:(0,f.Z)(u,E),R=(null!=w?w:0)+(0,y.Z)(u)/2,S=N.map((function(t,n){var e,i=(null!=(e=(0,h.Z)(u(t)))?e:0)+R;return{index:n,from:new l.Z({x:i,y:0}),to:new l.Z({x:i,y:_})}}));return o.createElement(a.Z,{className:c()("visx-columns",Z),top:e,left:r},j?j({lines:S}):S.map((function(t){var n=t.from,e=t.to,i=t.index;return o.createElement(s.Z,d({key:"column-line-"+i,from:n,to:e,stroke:x,strokeWidth:b,strokeDasharray:g,style:T},P))})))}_.propTypes={tickValues:r().array,height:r().number.isRequired}},85587:function(t,n,e){"use strict";e.d(n,{Z:function(){return a}});var i=e(82684),r=e(63588),o=e.n(r),u=e(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(){return s=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},s.apply(this,arguments)}function a(t){var n=t.children,e=t.data,r=void 0===e?[]:e,a=t.x,l=t.y,f=t.fill,h=void 0===f?"transparent":f,y=t.className,p=t.curve,d=t.innerRef,_=t.defined,v=void 0===_?function(){return!0}:_,x=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,c),m=(0,u.jv)({x:a,y:l,defined:v,curve:p});return n?i.createElement(i.Fragment,null,n({path:m})):i.createElement("path",s({ref:d,className:o()("visx-linepath",y),d:m(r)||"",fill:h,strokeLinecap:"round"},x))}},39309:function(t,n,e){"use strict";e.d(n,{SO:function(){return u},jv:function(){return c}});var i=e(48167),r=e(92201),o=e(49894);function u(t){var n=void 0===t?{}:t,e=n.x,r=n.x0,u=n.x1,c=n.y,s=n.y0,a=n.y1,l=n.defined,f=n.curve,h=(0,i.Z)();return e&&(0,o.Z)(h.x,e),r&&(0,o.Z)(h.x0,r),u&&(0,o.Z)(h.x1,u),c&&(0,o.Z)(h.y,c),s&&(0,o.Z)(h.y0,s),a&&(0,o.Z)(h.y1,a),l&&h.defined(l),f&&h.curve(f),h}function c(t){var n=void 0===t?{}:t,e=n.x,i=n.y,u=n.defined,c=n.curve,s=(0,r.Z)();return e&&(0,o.Z)(s.x,e),i&&(0,o.Z)(s.y,i),u&&s.defined(u),c&&s.curve(c),s}},98889:function(t,n,e){"use strict";e.d(n,{Z:function(){return _}});var i=e(47329),r=e.n(i),o=e(82684),u=e(63588),c=e.n(u),s=e(39309),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function l(){return l=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},l.apply(this,arguments)}function f(t){var n=t.children,e=t.x,i=t.x0,r=t.x1,u=t.y,f=t.y0,h=t.y1,y=t.data,p=void 0===y?[]:y,d=t.defined,_=void 0===d?function(){return!0}:d,v=t.className,x=t.curve,m=t.innerRef,b=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,a),g=(0,s.SO)({x:e,x0:i,x1:r,y:u,y0:f,y1:h,defined:_,curve:x});return n?o.createElement(o.Fragment,null,n({path:g})):o.createElement("path",l({ref:m,className:c()("visx-area",v),d:g(p)||""},b))}var h=["id","children"];function y(){return y=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y.apply(this,arguments)}function p(t){var n=t.id,e=t.children,i=function(t,n){if(null==t)return{};var e,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e=o[i],n.indexOf(e)>=0||(r[e]=t[e]);return r}(t,h);return o.createElement("defs",null,o.createElement("clipPath",y({id:n},i),e))}function d(){return d=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},d.apply(this,arguments)}function _(t){var n=t.className,e=t.curve,i=t.clipAboveTo,r=t.clipBelowTo,u=t.data,s=t.defined,a=t.x,l=t.y0,h=t.y1,y=t.aboveAreaProps,_=t.belowAreaProps,v=t.id,x=void 0===v?"":v;return o.createElement("g",{className:c()("visx-threshold",n)},o.createElement(f,{curve:e,data:u,x:a,y1:h,defined:s},(function(t){var n=t.path,e=null,c=null;return e=n.y0(r)(u),c=n.y0(i)(u),o.createElement("g",null,o.createElement(p,{id:"threshold-clip-below-"+x},o.createElement("path",{d:e||""})),o.createElement(p,{id:"threshold-clip-above-"+x},o.createElement("path",{d:c||""})))})),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},_)),o.createElement(f,d({curve:e,data:u,defined:s,x:a,y0:l,y1:h,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}p.propTypes={id:r().string.isRequired,children:r().node},_.propTypes={className:r().string,clipAboveTo:r().oneOfType([r().func,r().number]).isRequired,clipBelowTo:r().oneOfType([r().func,r().number]).isRequired,id:r().string.isRequired,data:r().array.isRequired,defined:r().func,x:r().oneOfType([r().func,r().number]).isRequired,y0:r().oneOfType([r().func,r().number]).isRequired,y1:r().oneOfType([r().func,r().number]).isRequired}},61655:function(t,n,e){"use strict";e.d(n,{Z:function(){return u}});var i=e(82684),r=e(29179);function o(){return o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},o.apply(this,arguments)}function u(t,n,e){void 0===n&&(n={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===e&&(e=function(t,n){return i.createElement("div",n,t)});return function(u){var c=(0,r.Z)();return e(i.createElement(t,o({},c,u)),n)}}},35681:function(t,n){"use strict";var e=Math.PI,i=2*e,r=1e-6,o=i-r;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function c(){return new u}u.prototype=c.prototype={constructor:u,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,i){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(t,n,e,i,r,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,i,o,u){t=+t,n=+n,i=+i,o=+o,u=+u;var c=this._x1,s=this._y1,a=i-t,l=o-n,f=c-t,h=s-n,y=f*f+h*h;if(u<0)throw new Error("negative radius: "+u);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(y>r)if(Math.abs(h*a-l*f)>r&&u){var p=i-c,d=o-s,_=a*a+l*l,v=p*p+d*d,x=Math.sqrt(_),m=Math.sqrt(y),b=u*Math.tan((e-Math.acos((_+y-v)/(2*x*m)))/2),g=b/m,Z=b/x;Math.abs(g-1)>r&&(this._+="L"+(t+g*f)+","+(n+g*h)),this._+="A"+u+","+u+",0,0,"+ +(h*p>f*d)+","+(this._x1=t+Z*a)+","+(this._y1=n+Z*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,n,u,c,s,a){t=+t,n=+n,a=!!a;var l=(u=+u)*Math.cos(c),f=u*Math.sin(c),h=t+l,y=n+f,p=1^a,d=a?c-s:s-c;if(u<0)throw new Error("negative radius: "+u);null===this._x1?this._+="M"+h+","+y:(Math.abs(this._x1-h)>r||Math.abs(this._y1-y)>r)&&(this._+="L"+h+","+y),u&&(d<0&&(d=d%i+i),d>o?this._+="A"+u+","+u+",0,1,"+p+","+(t-l)+","+(n-f)+"A"+u+","+u+",0,1,"+p+","+(this._x1=h)+","+(this._y1=y):d>r&&(this._+="A"+u+","+u+",0,"+ +(d>=e)+","+p+","+(this._x1=t+u*Math.cos(s))+","+(this._y1=n+u*Math.sin(s))))},rect:function(t,n,e,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}},n.Z=c},48167:function(t,n,e){"use strict";e.d(n,{Z:function(){return s}});var i=e(35681),r=e(90875),o=e(23622),u=e(92201),c=e(98930);function s(){var t=c.x,n=null,e=(0,r.Z)(0),s=c.y,a=(0,r.Z)(!0),l=null,f=o.Z,h=null;function y(r){var o,u,c,y,p,d=r.length,_=!1,v=new Array(d),x=new Array(d);for(null==l&&(h=f(p=(0,i.Z)())),o=0;o<=d;++o){if(!(o<d&&a(y=r[o],o,r))===_)if(_=!_)u=o,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),c=o-1;c>=u;--c)h.point(v[c],x[c]);h.lineEnd(),h.areaEnd()}_&&(v[o]=+t(y,o,r),x[o]=+e(y,o,r),h.point(n?+n(y,o,r):v[o],s?+s(y,o,r):x[o]))}if(p)return h=null,p+""||null}function p(){return(0,u.Z)().defined(a).curve(f).context(l)}return y.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,r.Z)(+e),n=null,y):t},y.x0=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),y):t},y.x1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):n},y.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),s=null,y):e},y.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(+t),y):e},y.y1=function(t){return arguments.length?(s=null==t?null:"function"===typeof t?t:(0,r.Z)(+t),y):s},y.lineX0=y.lineY0=function(){return p().x(t).y(e)},y.lineY1=function(){return p().x(t).y(s)},y.lineX1=function(){return p().x(n).y(e)},y.defined=function(t){return arguments.length?(a="function"===typeof t?t:(0,r.Z)(!!t),y):a},y.curve=function(t){return arguments.length?(f=t,null!=l&&(h=f(l)),y):f},y.context=function(t){return arguments.length?(null==t?l=h=null:h=f(l=t),y):l},y}},97745:function(t,n,e){"use strict";function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}function o(t){return new r(t)}e.d(n,{ZP:function(){return o},fE:function(){return r},xm:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}}},23622:function(t,n,e){"use strict";function i(t){this._context=t}function r(t){return new i(t)}e.d(n,{Z:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}}},92201:function(t,n,e){"use strict";e.d(n,{Z:function(){return c}});var i=e(35681),r=e(90875),o=e(23622),u=e(98930);function c(){var t=u.x,n=u.y,e=(0,r.Z)(!0),c=null,s=o.Z,a=null;function l(r){var o,u,l,f=r.length,h=!1;for(null==c&&(a=s(l=(0,i.Z)())),o=0;o<=f;++o)!(o<f&&e(u=r[o],o,r))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+t(u,o,r),+n(u,o,r));if(l)return a=null,l+""||null}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:(0,r.Z)(+n),l):t},l.y=function(t){return arguments.length?(n="function"===typeof t?t:(0,r.Z)(+t),l):n},l.defined=function(t){return arguments.length?(e="function"===typeof t?t:(0,r.Z)(!!t),l):e},l.curve=function(t){return arguments.length?(s=t,null!=c&&(a=s(c)),l):s},l.context=function(t){return arguments.length?(null==t?c=a=null:a=s(c=t),l):c},l}},98930:function(t,n,e){"use strict";function i(t){return t[0]}function r(t){return t[1]}e.d(n,{x:function(){return i},y:function(){return r}})},59739:function(t,n,e){"use strict";var i=e(56669);function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function t(t,n,e,r,o,u){if(u!==i){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:r};return e.PropTypes=e,e}},47329:function(t,n,e){t.exports=e(59739)()},56669:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80022:function(t,n,e){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(n,{Z:function(){return i}})},15544:function(t,n,e){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}e.d(n,{Z:function(){return i}})},13692:function(t,n,e){"use strict";e.d(n,{Z:function(){return r}});var i=e(61049);function r(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&(0,i.Z)(t,n)}},93189:function(t,n,e){"use strict";e.d(n,{Z:function(){return o}});var i=e(12539),r=e(80022);function o(t,n){if(n&&("object"===i(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(t)}},61049:function(t,n,e){"use strict";function i(t,n){return i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},i(t,n)}e.d(n,{Z:function(){return i}})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6798],{27277:function(e,n,t){var r=t(82394),o=t(21831),i=t(82684),u=t(39643),c=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,h=e.renderEmptyState,g=e.searchQuery,m=e.selectedItem,j=e.setItemRefs,y=e.uuid,b=(0,i.useState)(!0),O=b[0],x=b[1],w=(0,i.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!g||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,g)}));return 0===r.length?n:(e.push.apply(e,(0,o.Z)(r)),n.concat(d(d({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,g]),Z=w.itemGroups,k=w.itemsFlattened;a&&0===k.length&&(Z.push.apply(Z,(0,o.Z)(a)),k.push.apply(k,(0,o.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,i.useRef)(null);P.current=k.map((function(){return(0,i.createRef)()}));var I=(0,i.useState)(t),C=I[0],D=I[1],S=(0,i.useCallback)((function(e){null===s||void 0===s||s(e),D(e)}),[s,D]),E=k[C],M=(0,c.y)(),_=M.registerOnKeyDown,R=M.unregisterOnKeyDown;(0,i.useEffect)((function(){return function(){return R(y)}}),[R,y]),null===_||void 0===_||_(y,(function(e,n,t){var r,o=!0,i=k.length,c=k.findIndex((function(e,r){var o=e.keyboardShortcutValidation;return null===o||void 0===o?void 0:o({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!m;return-1!==c?(e.preventDefault(),v(k[c]),x(o),S(c)):(n[u.Uq]||l)&&k[C]?(l&&e.preventDefault(),v(k[C]),x(o),S(C)):(n[u.Bu]?(o=!1,r=null===C?i-1:C-1):n[u.kD]?(o=!1,r=null===C?0:C+1):n[u.vP]&&S(null),"undefined"!==typeof r&&(r>=i?r=0:r<=-1&&(r=i-1),r>=0&&r<=i-1?(S(r),e.preventDefault()):S(null)),void x(o))}),[C,k,m,S,x]),(0,i.useEffect)((function(){null===j||void 0===j||j(P)}),[P,k,j]),(0,i.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=k.length;(null===g||void 0===g?void 0:g.length)>=1&&e&&S(0)}),[C,k,g,S]);var B=(0,i.useCallback)((function(){return x(!0)}),[x]);return(0,i.useEffect)((function(){return window.addEventListener("mousemove",B),function(){window.removeEventListener("mousemove",B)}}),[B]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,r=e.renderItem,o=e.renderGroupHeader,i=e.uuid,u=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,o=e.value,i=o===(null===E||void 0===E?void 0:E.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(o,"-").concat(a),onMouseMove:function(){return O&&S(c)},ref:P.current[c],children:r(e,{highlighted:i,onClick:function(){return v(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(o,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===o||void 0===o?void 0:o(),c]},i||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(82394),o=t(82684),i=t(27277),u=t(31882),c=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),v=t(47041),h=t(70515),g=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),j=t(39643),y=t(3314),b=t(86735),O=t(44688),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n,t=e.removeTag,r=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,v=void 0===p?[]:p,h=e.uuid,w=(0,o.useRef)(null),k=(0,o.useState)(!1),P=k[0],I=k[1],C=(0,o.useState)(null),D=C[0],S=C[1],E=(0,o.useMemo)((function(){return(0,b.YC)(v||[],"uuid")}),[v]),M=(0,o.useMemo)((function(){return null===E||void 0===E?void 0:E.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[E]),_=(0,o.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1?M.concat({itemObject:{uuid:D},searchQueries:[D],value:"Add tag: ".concat(D)}):M}),[M,D]),R=(0,O.y)(),B=R.registerOnKeyDown,G=R.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){return G(h)}}),[G,h]),null===B||void 0===B||B(h,(function(e,n){var t;P&&n[j.vP]&&(I(!1),null===w||void 0===w||null===(t=w.current)||void 0===t||t.blur())}),[P,w]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{onClickTag:t,tags:f}),(0,x.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return I(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return I(!0)},ref:w,value:D||""}),(0,x.jsx)(g,{topOffset:null===w||void 0===w||null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(i.Z,{itemGroups:[{items:P?_:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),S(null)},searchQuery:D,uuid:h})})]})]})}},88543:function(e,n,t){t.d(n,{S:function(){return O},Z:function(){return x}});var r=t(82684),o=t(15338),i=t(97618),u=t(55485),c=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),v=t(69650),h=t(72473),g=t(8193),m=t(70515),j=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.children,r=e.description,o=e.invalid,c=e.large,l=void 0===c||c,a=e.selectInput,y=e.textInput,O=e.title,x=e.toggleSwitch,w=e.warning;return(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(u.ZP,{flexDirection:"column",children:[(0,j.jsxs)(f.ZP,{danger:o,default:!0,large:l,warning:w,children:[O," ",o&&(0,j.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),r&&"string"===typeof r&&(0,j.jsx)(f.ZP,{muted:!0,small:!0,children:r}),r&&"string"!==typeof r&&r]}),(0,j.jsx)(s.Z,{mr:m.cd}),(0,j.jsxs)(i.Z,{flex:1,justifyContent:"flex-end",children:[t,y&&(0,j.jsx)(p.Z,b({afterIcon:(0,j.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},y)),a&&(0,j.jsx)(d.Z,b(b({},a),{},{afterIcon:(0,j.jsx)(h._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,j.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,j.jsx)(v.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},x=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,j.jsxs)(l.Z,{noPadding:!0,children:[(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(i.Z,{flex:1,flexDirection:"column",children:[(0,j.jsx)(c.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,j.jsx)(s.Z,{mt:1,children:(0,j.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),r.Children.map(n,(function(e,n){return(0,j.jsxs)("div",{children:[(0,j.jsx)(o.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return l},Z:function(){return c}});var r=t(38626),o=t(44897),i=t(42631),u=t(70515),c=2*u.iI,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],i.n_,u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6798],{27277:function(e,n,t){var r=t(82394),o=t(21831),i=t(82684),u=t(39643),c=t(44688),l=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,h=e.renderEmptyState,g=e.searchQuery,m=e.selectedItem,j=e.setItemRefs,y=e.uuid,b=(0,i.useState)(!0),O=b[0],x=b[1],w=(0,i.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!g||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,g)}));return 0===r.length?n:(e.push.apply(e,(0,o.Z)(r)),n.concat(d(d({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,g]),Z=w.itemGroups,k=w.itemsFlattened;a&&0===k.length&&(Z.push.apply(Z,(0,o.Z)(a)),k.push.apply(k,(0,o.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,i.useRef)(null);P.current=k.map((function(){return(0,i.createRef)()}));var I=(0,i.useState)(t),C=I[0],D=I[1],S=(0,i.useCallback)((function(e){null===s||void 0===s||s(e),D(e)}),[s,D]),E=k[C],M=(0,c.y)(),_=M.registerOnKeyDown,R=M.unregisterOnKeyDown;(0,i.useEffect)((function(){return function(){return R(y)}}),[R,y]),null===_||void 0===_||_(y,(function(e,n,t){var r,o=!0,i=k.length,c=k.findIndex((function(e,r){var o=e.keyboardShortcutValidation;return null===o||void 0===o?void 0:o({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!m;return-1!==c?(e.preventDefault(),v(k[c]),x(o),S(c)):(n[u.Uq]||l)&&k[C]?(l&&e.preventDefault(),v(k[C]),x(o),S(C)):(n[u.Bu]?(o=!1,r=null===C?i-1:C-1):n[u.kD]?(o=!1,r=null===C?0:C+1):n[u.vP]&&S(null),"undefined"!==typeof r&&(r>=i?r=0:r<=-1&&(r=i-1),r>=0&&r<=i-1?(S(r),e.preventDefault()):S(null)),void x(o))}),[C,k,m,S,x]),(0,i.useEffect)((function(){null===j||void 0===j||j(P)}),[P,k,j]),(0,i.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=k.length;(null===g||void 0===g?void 0:g.length)>=1&&e&&S(0)}),[C,k,g,S]);var B=(0,i.useCallback)((function(){return x(!0)}),[x]);return(0,i.useEffect)((function(){return window.addEventListener("mousemove",B),function(){window.removeEventListener("mousemove",B)}}),[B]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,r=e.renderItem,o=e.renderGroupHeader,i=e.uuid,u=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,o=e.value,i=o===(null===E||void 0===E?void 0:E.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(o,"-").concat(a),onMouseMove:function(){return O&&S(c)},ref:P.current[c],children:r(e,{highlighted:i,onClick:function(){return v(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(o,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===o||void 0===o?void 0:o(),c]},i||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(82394),o=t(82684),i=t(27277),u=t(31882),c=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),v=t(47041),h=t(70515),g=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),j=t(39643),y=t(3314),b=t(86735),O=t(44688),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n,t=e.removeTag,r=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,v=void 0===p?[]:p,h=e.uuid,w=(0,o.useRef)(null),k=(0,o.useState)(!1),P=k[0],I=k[1],C=(0,o.useState)(null),D=C[0],S=C[1],E=(0,o.useMemo)((function(){return(0,b.YC)(v||[],"uuid")}),[v]),M=(0,o.useMemo)((function(){return null===E||void 0===E?void 0:E.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[E]),_=(0,o.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1?M.concat({itemObject:{uuid:D},searchQueries:[D],value:"Add tag: ".concat(D)}):M}),[M,D]),R=(0,O.y)(),B=R.registerOnKeyDown,G=R.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){return G(h)}}),[G,h]),null===B||void 0===B||B(h,(function(e,n){var t;P&&n[j.vP]&&(I(!1),null===w||void 0===w||null===(t=w.current)||void 0===t||t.blur())}),[P,w]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{onClickTag:t,tags:f}),(0,x.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return I(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return I(!0)},ref:w,value:D||""}),(0,x.jsx)(g,{topOffset:null===w||void 0===w||null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(i.Z,{itemGroups:[{items:P?_:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),S(null)},searchQuery:D,uuid:h})})]})]})}},57114:function(e,n,t){t.d(n,{S:function(){return O},Z:function(){return x}});var r=t(82684),o=t(15338),i=t(97618),u=t(55485),c=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),v=t(69650),h=t(72473),g=t(8193),m=t(70515),j=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.children,r=e.description,o=e.invalid,c=e.large,l=void 0===c||c,a=e.selectInput,y=e.textInput,O=e.title,x=e.toggleSwitch,w=e.warning;return(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(u.ZP,{flexDirection:"column",children:[(0,j.jsxs)(f.ZP,{danger:o,default:!0,large:l,warning:w,children:[O," ",o&&(0,j.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),r&&"string"===typeof r&&(0,j.jsx)(f.ZP,{muted:!0,small:!0,children:r}),r&&"string"!==typeof r&&r]}),(0,j.jsx)(s.Z,{mr:m.cd}),(0,j.jsxs)(i.Z,{flex:1,justifyContent:"flex-end",children:[t,y&&(0,j.jsx)(p.Z,b({afterIcon:(0,j.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},y)),a&&(0,j.jsx)(d.Z,b(b({},a),{},{afterIcon:(0,j.jsx)(h._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,j.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,j.jsx)(v.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},x=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,j.jsxs)(l.Z,{noPadding:!0,children:[(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(i.Z,{flex:1,flexDirection:"column",children:[(0,j.jsx)(c.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,j.jsx)(s.Z,{mt:1,children:(0,j.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),r.Children.map(n,(function(e,n){return(0,j.jsxs)("div",{children:[(0,j.jsx)(o.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return l},Z:function(){return c}});var r=t(38626),o=t(44897),i=t(42631),u=t(70515),c=2*u.iI,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],i.n_,u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[976],{4006:function(t,e,n){n.d(e,{Z:function(){return dt}});var r=n(75582),i=n(82394),o=n(92083),a=n.n(o),l=n(26304),c=n(26226),u=n(84969),d=n(90948),s=n(65743),h=n(39048),f=n(79487),p=n(29989),m=n(61655),g=n(16853),x=n(65376),y=n(55485),v=n(30160),b=n(94035),j=n(95363),k=n(70515),Z=n(21831),w=n(82684),O=n(38626),S=n(48072),P=n(24903),A=n(98677),I=n(84181),L=n(44897),T=n(79633),C=n(61896),M=n(81728);function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:k.iI*(3+k.cd),left:k.iI*k.cd,right:k.iI*k.cd,top:k.iI*k.cd};function N(t,e){return Math.max.apply(Math,(0,Z.Z)(t.map(e)))}function _(t){var e=t.data,n=t.height,r=t.keyForYData,i=t.large,o=t.margin,a=void 0===o?{}:o,l=t.orientationVertical,c=void 0!==l&&l,u=t.showTooltip,d=t.width,s=t.yLabelFormat,h=(0,w.useContext)(O.ThemeContext),f=(0,w.useCallback)((function(t){return t[r]}),[r]),p=s;p||(p=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var m=i?C.iD:C.J5,g=E(E({},F),a),x=e.slice(Math.max(0,e.length-50)),y=(0,w.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(t){return t!==r}))}),[x,r]),v=(0,P.Z)({domain:y,range:[T.a$,T.Ej,T.hM,T.ZA,T.$R,T.X_,T.er,T.hl,T.nQ]}),b=(0,w.useMemo)((function(){return x.map(f)}),[x,f]),j=(0,A.Z)({domain:b,padding:.1}),k=(0,A.Z)({domain:y,padding:.1}),D=(0,I.Z)({domain:[0,N(x,(function(t){return N(y,(function(e){return Number(t[e])}))}))]}),_={active:(null===h||void 0===h?void 0:h.content.default)||L.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||L.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||L.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||L.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||L.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||L.Z.background.navigation},R=b;c&&(R=x.reduce((function(t,e){return t.concat(y.map((function(t){var n=e[t];return(0,M.HW)(n)?parseInt(String(n)):n})))}),[]));var B=Math.min(Math.max.apply(Math,(0,Z.Z)(R.map((function(t){return String(t).length})))),20);g.left+=7*B;var V=d-(g.left+g.right),z=n-(g.top+g.bottom);c?(j.rangeRound([0,V]),D.rangeRound([z,0])):(j.rangeRound([z,0]),D.rangeRound([0,V])),k.rangeRound([0,j.bandwidth()]);var Y=x.map(f).length,H=0;c||(H=j(R[Y-1]));var J=(0,w.useCallback)((function(t){var e=(0,S.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=n-g.left,o=r-g.top,a=0;a=c?(i-H/2)/(V-H):1-(o-H/2)/(z-H);var l=Math.floor(a*Y),d=x[l];"undefined"===typeof d&&(d=x[l-1]),c?i>H&&i<V+g.left-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r}):o>H&&o<z-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r})}),[x,Y,g.left,g.top,c,u,H,V,z]);return{colorScale:v,colors:_,data:x,fontSize:m,handleTooltip:J,margin:g,tempScale:D,tickValues:R,xKeys:y,xMax:V,y1Scale:k,yLabelFormat:p,yMax:z,yScale:j,ySerialize:f}}var R=n(28598),B=["height","width","xAxisLabel","yAxisLabel"];function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=3*k.iI,H=(k.iI,k.iI,k.iI,(0,m.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,o=t.keyForYData,a=void 0===o?"__y":o,l=t.large,c=t.margin,m=void 0===c?{}:c,y=t.renderNoDataText,b=t.renderTooltipContent,k=t.showTooltip,Z=t.tooltipData,w=t.tooltipLeft,O=t.tooltipOpen,S=t.tooltipTop,P=t.width,A=t.xAxisLabel,I=t.xNumTicks,L=t.yLabelFormat,T=_({data:e,height:n,keyForYData:a,large:l,margin:m,showTooltip:k,width:P,yLabelFormat:L}),C=T.colorScale,D=T.colors,E=T.data,F=T.fontSize,N=T.handleTooltip,B=T.margin,V=T.tempScale,H=T.tickValues,J=T.xKeys,W=T.xMax,X=T.y1Scale,K=T.yLabelFormat,G=T.yMax,U=T.yScale,q=T.ySerialize,Q=[];Math.min((null===H||void 0===H?void 0:H.length)||0,Math.floor(n/Y));return null===H||void 0===H||H.forEach((function(t){Q.push(t)})),P<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:n,width:P,children:[y&&!(null!==E&&void 0!==E&&E.length)&&(0,R.jsx)("text",{fill:D.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:F,x:"50%",y:"50%",children:y()}),(0,R.jsx)(s.Z,{fill:"transparent",height:n-(B.top+B.bottom),onMouseLeave:function(){return i()},onMouseMove:N,onTouchMove:N,onTouchStart:N,rx:14,width:P-(B.left+B.right),x:B.left,y:B.top}),(null===E||void 0===E?void 0:E.length)&&(0,R.jsxs)(p.Z,{left:B.left,top:B.top,children:[(0,R.jsx)(h.Z,{color:C,data:E,keys:J,width:W,xScale:V,y0:q,y0Scale:U,y1Scale:X,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{top:t.y0,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.y0))}))}}),(0,R.jsx)(u.Z,{hideTicks:!0,scale:U,stroke:D.muted,tickFormat:function(t){return K(t)},tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:D.muted,tickValues:Q,top:2}),(0,R.jsx)(d.Z,{label:A,labelProps:{fill:D.muted,fontFamily:j.ry,fontSize:F,textAnchor:"middle"},numTicks:I,scale:V,stroke:D.muted,tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,textAnchor:"middle"}},tickStroke:D.muted,top:G})]}),Z&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:B.left,y:S},pointerEvents:"none",stroke:D.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+B.left,y:S}})})]}),O&&Z&&(0,R.jsxs)(g.Z,{left:w,style:z(z({},x.j),{},{backgroundColor:D.tooltipBackground}),top:S,children:[b&&b(Z),!b&&Object.entries(Z).map((function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];if(a!==n){var o=i;return(0,M.HW)(o)&&String(o).split(".").length>=2&&(o=o.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",o]},n)}}))]})]})})));var J=function(t){var e,n=t.height,r=t.width,i=t.xAxisLabel,o=t.yAxisLabel,a=(0,l.Z)(t,B);return e="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?k.iI:null,width:"100%"},children:[o&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:n,width:e},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.width,n=t.height;return(0,R.jsx)(H,z(z({},a),{},{height:n,width:e}))}})})]}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},W=n(95422),X=["keyForYData"],K=["height","width","xAxisLabel","yAxisLabel"];function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=6*k.iI,Q=(0,m.Z)((function(t){var e=t.keyForYData,n=void 0===e?"__y":e,i=(0,l.Z)(t,X),o=i.height,a=i.hideTooltip,c=i.renderNoDataText,h=i.renderTooltipContent,m=i.tooltipData,y=i.tooltipLeft,b=i.tooltipOpen,k=i.tooltipTop,Z=i.width,w=i.xLabelFormat,O=i.xNumTicks,S=i.yNumTicks,P=_(U(U({},i),{},{keyForYData:n,orientationVertical:!0})),A=P.colorScale,I=P.colors,L=P.data,T=P.fontSize,C=P.handleTooltip,D=P.margin,E=P.tempScale,F=(P.tickValues,P.xKeys),N=(P.xMax,P.y1Scale),B=P.yLabelFormat,V=P.yMax,z=P.yScale,Y=P.ySerialize,H=Math.min(O,Z/q);return Z<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:o,width:Z,children:[c&&!(null!==L&&void 0!==L&&L.length)&&(0,R.jsx)("text",{fill:I.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:T,x:"50%",y:"50%",children:c()}),(null===L||void 0===L?void 0:L.length)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Z,{fill:"transparent",height:o-(D.top+D.bottom),onMouseLeave:function(){return a()},onMouseMove:C,onTouchMove:C,onTouchStart:C,rx:14,width:Z-(D.left+D.right),x:D.left,y:2*D.top}),(0,R.jsxs)(p.Z,{top:D.top,children:[(0,R.jsx)(W.Z,{color:A,data:L,height:V,keys:F,x0:Y,x0Scale:z,x1Scale:N,yScale:E,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{left:t.x0+D.left,top:D.top,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.x0))}))}}),(0,R.jsx)(u.Z,{left:D.left,numTicks:S,scale:E,stroke:I.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:I.muted,top:D.top}),(0,R.jsx)(d.Z,{hideTicks:!0,left:D.left,numTicks:H,scale:z,stroke:I.muted,tickFormat:w,tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"middle"}},tickStroke:I.muted,top:V+D.top})]})]}),m&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:y,y:2*D.top},pointerEvents:"none",stroke:I.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:y,y:V+2*D.top}})})]}),b&&m&&(0,R.jsxs)(g.Z,{left:y,style:U(U({},x.j),{},{backgroundColor:I.tooltipBackground}),top:k,children:[h&&h(m),!h&&Object.entries(m).map((function(t){var e=(0,r.Z)(t,2),i=e[0],o=e[1];if(n!==i){var a=o;return(0,M.HW)(a)&&String(a).split(".").length>=2&&(a=a.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[i,": ",a]},i)}})),(0,R.jsx)("br",{}),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[w&&w(Y(m)),!w&&Y(m)]})]})]})}));var $=function(t){var e=t.height,n=t.width,r=t.xAxisLabel,i=t.yAxisLabel,o=(0,l.Z)(t,K);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:r?k.iI:null,width:"100%"},children:[i&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,R.jsx)("div",{style:{height:e,width:i?0===n?n:n-28:n},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(Q,U(U({},o),{},{height:e,width:n}))}})})]}),r&&(0,R.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},tt=n(93859),et=n(52729),nt=n(74168),rt=n(87862),it=n(97301),ot=n(35058),at=n(3917),lt=n(86735);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){var e,n=t.block,o=t.data,l=t.width,c=t.xAxisLabel,u=n.configuration,d=void 0===u?{}:u,s=d||{},h=s.chart_style,f=s.chart_type,p=s.y_sort_order,m=d[ot.JJ]||it.lA,g=(null===d||void 0===d||null===(e=d[ot.bE])||void 0===e?void 0:e.map((function(t){return(0,ot.c0)(t)})))||[],x=at.n1,y=d[ot.Yg];if([ot.aE.HOUR,ot.aE.MINUTE,ot.aE.SECOND].includes(y)&&(x=at.OC),ot.oV.BAR_CHART===f||ot.oV.TIME_SERIES_BAR_CHART===f){var b=o.x,j=o.y,Z=ot.oV.TIME_SERIES_BAR_CHART===f;if(b&&j&&Array.isArray(b)&&Array.isArray(j)){var w,O=null===(w=d[ot.eN])||void 0===w?void 0:w.join(", "),S=null===g||void 0===g?void 0:g.join(", ");g.length||g.push(ot.rj);var P=g[0],A=b.map((function(t,e){return ut({__y:t},g.reduce((function(t,n,r){var o,a=null===j||void 0===j||null===(o=j[r])||void 0===o?void 0:o[e];return"undefined"===typeof a?t:ut(ut({},t),{},(0,i.Z)({},n,a))}),{}))}));ot.JT.HORIZONTAL===h?ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0})):ot.JT.VERTICAL===h&&(ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1})));var I={data:A,height:m,renderNoDataText:function(){return"No data matching query"},width:l,xNumTicks:3};return ot.JT.HORIZONTAL===h?(0,R.jsx)(J,ut(ut({},I),{},{xAxisLabel:S||d[ot.rj],yAxisLabel:c||O||d[ot.a3]})):(0,R.jsx)($,ut(ut({},I),{},{xAxisLabel:c||O,xLabelFormat:function(t){return Z?a()(1e3*t).format(at.n1):t},xNumTicks:A.length,yAxisLabel:S,yNumTicks:5}))}}else if(ot.oV.HISTOGRAM===f){var L,T=o.x,C=o.y,D=null===(L=d[ot.eN])||void 0===L?void 0:L.join(", ");if(T&&C&&Array.isArray(T))return(0,R.jsx)(et.Z,{data:T.map((function(t,e){var n,r=t.max,i=t.min;return[r,null===C||void 0===C||null===(n=C[e])||void 0===n?void 0:n.value,i]})),height:m,width:l,large:!0,margin:{left:5*k.iI,right:1*k.iI,top:3*k.iI},noPadding:!0,renderTooltipContent:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2];return(0,R.jsxs)(v.ZP,{inverted:!0,monospace:!0,small:!0,children:["Count : ",i,(0,R.jsx)("br",{}),"Bucket: ",o,"-",n]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(t){return(0,lt.YC)(t,"[0]")},xAxisLabel:c||D||d[ot.a3],yAxisLabel:D?"count(".concat(D,")"):d[ot.rj]})}else if(ot.oV.LINE_CHART===f||ot.oV.TIME_SERIES_LINE_CHART===f){var E=o.x,F=o.y,N=ot.oV.TIME_SERIES_LINE_CHART===f;if(E&&F&&Array.isArray(E)&&Array.isArray(F)&&Array.isArray(null===F||void 0===F?void 0:F[0])){var _,B=g;d[ot.e]&&(B=d[ot.e].split(",").map((function(t){return t.trim()})));var V=E.map((function(t,e){return{x:t,y:(0,lt.w6)(F.length).map((function(t,n){var r=F[n][e];return"undefined"===typeof r||null===r?0:r}))}})),z=null===(_=d[ot.eN])||void 0===_?void 0:_.join(", "),Y=g.join(", ");return(0,R.jsx)(nt.Z,{data:V,height:m,lineLegendNames:B,margin:{bottom:8*k.iI,left:5*k.iI},noCurve:!0,renderXTooltipContent:function(t){t.index;var e=t.x,n=d[ot.a3],r=e;return d[ot.eN]&&(n=d[ot.eN].map(String).join(", ")),N&&(r=a()(1e3*e).format(x)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",r]})},renderYTooltipContent:function(t,e){var n=t.y;return(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[B&&B[e]&&"".concat(B[e],": "),n&&(0,M.x6)((0,M.QV)(n[e],4))]})},width:l?l-(3*k.iI+3):l,xAxisLabel:c||z||String(d[ot.a3]||""),xLabelFormat:function(t){return N?a()(1e3*t).format(at.n1):t},yAxisLabel:Y||String(d[ot.rj]),yLabelFormat:function(t){return t}})}}else if(ot.oV.PIE_CHART===f){var H,W=o[String(d[ot.a3]||ot.a3)],X=null===(H=d[ot.eN])||void 0===H?void 0:H.join(", ");if(W)return(0,R.jsx)(rt.Z,{data:Object.entries(W),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,M.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:m,width:l,xAxisLabel:c||X||String(d[ot.a3]||"")})}else if(ot.oV.TABLE===f){var K=o.index,G=o.x,U=o.y;return Array.isArray(G)&&Array.isArray(U)&&Array.isArray(U[0])&&(0,R.jsx)(tt.Z,{columns:G,height:d[ot.JJ]?null:m,index:K,maxHeight:d[ot.JJ]?m:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:U,width:l})}return(0,R.jsx)("div",{})}},97301:function(t,e,n){n.d(e,{T7:function(){return d},Tb:function(){return u},lA:function(){return l},pM:function(){return c},y9:function(){return s}});var r=n(38626),i=n(44897),o=n(42631),a=n(70515),l=40*a.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*a.iI,.5*a.iI,1*a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeArea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*a.iI,1*a.iI),d=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],a.iI/2,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],a.cd*a.iI,a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||i.Z.borders).medium,";\n ")}))},52729:function(t,e,n){n.d(e,{Z:function(){return V}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(84969),u=n(90948),d=n(65743),s=n(29989),h=n(38626),f=n(61655),p=n(16853),m=n(65376),g=n(48072),x=n(98677),y=n(84181),v=n(55485),b=n(4190),j=n(30160),k=n(94035),Z=n(70987),w=n(79633),O=n(89370),S=n(95363),P=n(61896),A=n(70515),I=n(38469),L=n(6568),T=function(t){return t.slice(0,10)},C=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},M=n(79221),D=n(98684),E=n(28598),F=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={bottom:A.iI,left:3*A.iI,right:0,top:1*A.iI},B=(0,f.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,f=t.getYValue,v=t.height,b=t.hideTooltip,k=t.large,F=t.margin,N=void 0===F?{}:F,B=t.muted,V=t.noPadding,z=t.numberOfXTicks,Y=t.renderTooltipContent,H=t.selected,J=t.showAxisLabels,W=t.showTooltip,X=t.showYAxisLabels,K=t.showZeroes,G=t.sortData,U=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=k?P.J5:P.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return f?f(t):t[1]}),[f]),at=(0,a.useContext)(h.ThemeContext),lt=e===O.RL.DATETIME,ct=_(_({},R),N);J&&(ct=_(_({},ct),{},{left:ct.left+A.iI}));var ut=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),dt=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ut.slice(0,60),st=tt-(ct.left+ct.right),ht=v-(ct.bottom+ct.top),ft=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,L.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(dt,st):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],c=n[o];if(l&&c){var u=new Date(l),d=new Date(c),s=C(u,d);if(e>=u&&e<d)r[s]=(r[s]||0)+a;else for(;o<n.length||!r[s];)if(i+=1,o+=1,u=new Date(n[i]),d=new Date(n[o]),s=C(u,d),e>=u&&e<d)return void(r[s]=(r[s]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=T(e),o=T(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(dt,ft);dt=ft?Object.entries(pt).sort((function(t,e){return new Date(T(t[0]))-new Date(T(e[0]))})):dt;var mt=ft?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=dt.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),xt=gt.length,yt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(xt,tt,lt),vt=(0,x.Z)({domain:gt,paddingInner:V?null:yt,range:[0,st],round:!1}),bt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(dt.map(ot)))],range:[ht,0],round:!0}),jt=(0,D.K)(at),kt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=kt.default;B?Zt=kt.muted:H&&(Zt=kt.selected);var wt=xt?lt?mt:Math.max.apply(Math,(0,i.Z)(dt.map((function(t){return ot(t)})))):0,Ot=Math.floor(wt/6),St=[0],Pt=0;if(wt>6)for(;Pt<wt;)St.push(Pt+Ot),Pt+=Ot;else for(;Pt<=wt;)St.push(Pt+1),Pt+=1;wt>9999?ct=_(_({},ct),{},{left:k?8*A.iI:4.1*A.iI}):wt>999&&(ct=_(_({},ct),{},{left:k?5*A.iI:3.6*A.iI}));var At=lt?2.25:0,It=xt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||X,Lt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(J?ct.left:0))/st,o=Math.floor(xt*i),a=dt[o];"undefined"===typeof a&&(a=dt[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var c=Y?Y(a):"".concat(l," (").concat(ot(a),")");W({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[dt,xt,it,ot,ct.left,ct.top,Y,J,W,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:v+ct.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(s.Z,{left:J?ct.left:0,top:ct.top+At,children:dt.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=vt.bandwidth(),l=ht-(null!==(i=bt(r))&&void 0!==i?i:0),c=vt(n),u=ht-l;t.push((0,E.jsx)(d.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:a,x:c,y:u},"bar-".concat(n)))}return t}),[])}),J&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c.Z,{left:ct.left,scale:bt,stroke:kt.muted,tickFormat:function(t){return nt?nt(t):(0,M.P5)(t)},tickLabelProps:function(){return{fill:kt.active,fontFamily:S.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:kt.muted,tickValues:St,top:ct.top+At}),(0,E.jsx)(u.Z,{left:ct.left,numTicks:lt?void 0:z||6,orientation:"top",scale:ft||vt,stroke:kt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?kt.active:"transparent",fontFamily:S.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ft(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(A.iI,")")},tickStroke:It?kt.muted:"transparent",top:ht+ct.top+At})]})]}),Q&&U&&(0,E.jsx)(p.Z,{left:q,style:m.j,top:$,children:(0,E.jsx)(j.ZP,{color:w.E5,small:!0,children:U})})]})}));var V=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,F);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:A.iI,width:"100%"},children:[c&&(0,E.jsx)(v.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(k.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,E.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(B,_(_({},u),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(38626),u=n(90948),d=n(84969),s=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),g=n(29989),x=n(17066),y=n(84482),v=n(76771),b=n(98889),j=n(65376),k=n(61655),Z=n(97745),w=n(48072),O=n(10103),S=n(84181),P=n(24903),A=n(55485),I=n(30160),L=n(94035),T=n(44897),C=n(8454),M=n(79633),D=n(95363),E=n(61896),F=n(70515),N=n(86735),_=n(79221),R=n(98684),B=n(28598),V=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H=Y(Y({},j.j),{},{backgroundColor:T.Z.background.muted,border:"none"}),J=(0,k.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,k=t.getY,A=t.getYScaleValues,L=t.gridProps,V=void 0===L?{}:L,z=t.height,J=t.hideGridX,W=t.hideTooltip,X=t.increasedXTicks,K=t.lineLegendNames,G=t.margin,U=t.noCurve,q=t.numYTicks,Q=t.renderXTooltipContent,$=t.renderYTooltipContent,tt=t.showTooltip,et=t.thickStroke,nt=t.tooltipData,rt=t.tooltipLeft,it=void 0===rt?0:rt,ot=t.tooltipTop,at=void 0===ot?[]:ot,lt=t.width,ct=t.xLabelFormat,ut=t.xLabelRotate,dt=void 0===ut||ut,st=t.yLabelFormat,ht=(0,a.useContext)(c.ThemeContext),ft=l||function(t){return null===t||void 0===t?void 0:t.x},pt=k||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},mt=T.Z.monotone.gray,gt=T.Z.brand.wind200,xt=T.Z.content.muted,yt=T.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(lt<10)return null;var bt=lt-G.left-G.right,jt=z-G.top-G.bottom,kt=bt/2,Zt=0===n.length?0:Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),wt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,bt]})}),[bt,vt]),Ot=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),St=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),Pt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Ot,St],nice:!0,range:[jt,0]})}),[jt,St,Ot]),At=lt>520?X?20:10:X?10:5,It=(0,R.K)(ht),Lt=xt,Tt=It.map((function(t){return{stroke:t}})),Ct=(0,P.Z)({domain:K||[],range:Tt.map((function(t){return t.stroke}))}),Mt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=wt.invert(e-G.left),i=(0,N.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,O.range)(0,Zt).map((function(t){return Pt(pt(l,t))})),u=c.some((function(t){return"undefined"===typeof t}));(pt(l)||A&&!u)&&tt({tooltipData:Y(Y({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,pt,A,G,tt,wt,vt,Pt]),Dt={};return U||(Dt.curve=Z.ZP),(0,B.jsxs)(B.Fragment,{children:[K&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(x.Z,{labelFormat:function(t){return t},scale:Ct,children:function(t){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:t.map((function(t,e){return(0,B.jsxs)(y.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,B.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,B.jsxs)("svg",{height:z,width:lt,children:[!e&&(0,B.jsx)(s.Z,{fill:"transparent",height:z,onMouseLeave:function(){return W()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,rx:14,width:lt-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(g.Z,{left:G.left,top:G.top,children:[!J&&(0,B.jsx)(p.Z,Y({height:jt,pointerEvents:"none",scale:wt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)(m.Z,Y({height:jt,pointerEvents:"none",scale:Pt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)("line",{stroke:mt,x1:bt,x2:bt,y1:0,y2:jt}),(0,B.jsx)(u.Z,{numTicks:At,scale:wt,stroke:Lt,tickFormat:function(t){return ct?ct(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"middle",transform:dt&&"rotate(-45, ".concat(wt(t),", 0) translate(-32, 4)")}},tickStroke:Lt,top:jt}),(0,B.jsx)(d.Z,{hideTicks:!0,numTicks:q,scale:Pt,stroke:Lt,tickFormat:function(t){return st?st(t):(0,_.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Lt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(b.Z,Y(Y({},Dt),{},{aboveAreaProps:{fill:T.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:gt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return wt(ft(t))},y0:function(t){return Pt("undefined"===typeof r?Ot:pt(t,r))},y1:function(t){return Pt(pt(t,e))}}))})),(0,O.range)(0,Zt).map((function(t){return(0,a.createElement)(h.Z,Y(Y({},Dt),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:et?2:1,x:function(t){return wt(ft(t))},y:function(e){return Pt(e.y&&(t>=e.y.length?Ot:pt(e,t)))}},Tt[t]))}))]}),nt&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:it,y:G.top},pointerEvents:"none",stroke:M.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:it,y:jt+G.top}}),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+1+G.top,fill:Tt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+G.top,fill:Tt[e].stroke,pointerEvents:"none",r:4,stroke:Tt[e].stroke,strokeWidth:2},e)}))]})]}),nt&&(0,B.jsxs)("div",{children:[at.map((function(t,e){var n=pt(nt,e);return e>=1&&Math.abs(at[e-1]-t)<5*F.iI&&(t+=3*F.iI),(0,B.jsxs)(j.Z,{left:it>kt?it-(0,_.Vs)($,nt,e)*F.iI:it+F.iI,style:H,top:t-2*F.iI,children:[$&&$(nt,e),!$&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[e]]})]},e)})),(0,B.jsxs)(j.Z,{left:it>kt?it-4*(0,_.Vs)(Q,nt):it,style:Y(Y({},H),{},{transform:"translateX(-65%)"}),top:jt+G.top,children:[Q&&Q(nt),!Q&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:ft(nt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,V),m=Y(Y({},{bottom:3*F.iI,left:5*F.iI,right:3*F.iI,top:3*F.iI}),c);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:i,marginBottom:F.iI,width:"100%"},children:[h&&(0,B.jsx)(A.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(L.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,B.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,B.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,B.jsx)(J,Y(Y({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,B.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return A}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),c=n(82684),u=n(29989),d=n(38626),s=n(11684),h=n(24903),f=n(30160),p=n(44897),m=n(95363),g=n(61896),x=n(70515),y=n(98684),v=n(28598),b=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},w=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function S(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,c=t.textColor;return(0,s.useTransition)(n,{enter:O,from:e?w:O,keys:i,leave:e?w:O,update:O})((function(t,e,n){var u=n.key,d=r.centroid(e),h=(0,o.Z)(d,2),f=h[0],p=h[1],x=e.endAngle-e.startAngle>=.1;return(0,v.jsxs)("g",{children:[(0,v.jsx)(s.animated.path,{d:(0,s.to)([t.startAngle,t.endAngle],(function(t,n){return r(k(k({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),x&&(0,v.jsx)(s.animated.g,{style:{opacity:t.opacity},children:(0,v.jsx)("text",{dy:".33em",fill:c,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:f,y:p,children:i(e)})})]},u)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,s=t.margin,f=void 0===s?Z:s,m=t.textColor,g=t.width,b=(0,c.useState)(null),j=b[0],w=b[1],O=(0,c.useContext)(d.ThemeContext),P=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var A=(0,h.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(O)}),I=g-f.left-f.right,L=a-f.top-f.bottom,T=Math.min(I,L)/2,C=L/2,M=I/2,D=Math.min(I/4,12*x.iI);return(0,v.jsx)("svg",{height:a,width:g,children:(0,v.jsx)(u.Z,{left:M+f.left,top:C+f.top,children:(0,v.jsx)(l.Z,{cornerRadius:x.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(T-D,12.25),outerRadius:T,padAngle:.005,pieValue:o,children:function(t){return(0,v.jsx)(S,k(k({},t),{},{animate:n,getColor:function(t){var e=t.data;return A(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:P}))}})})})}function A(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:l,children:(0,v.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,v.jsx)(P,k(k({},o),{},{height:n,width:e}))}})}),i&&(0,v.jsx)("div",{style:{paddingTop:4},children:(0,v.jsx)(f.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,c=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,h=n.fire400,f=n.water200,p=n.water300,m=n.water400,g=n.wind200,x=n.wind300,y=n.wind400,v=e.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([y,m,h,u,a,x,p,s,c,o,g,f,d,l,i])}},94035:function(t,e,n){var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},31882:function(t,e,n){var r=n(38626),i=n(71180),o=n(55485),a=n(30160),l=n(44897),c=n(72473),u=n(70515),d=n(61896),s=n(28598),h=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(t){return!t.primary&&"\n background-color: ".concat((t.theme.background||l.Z.background).tag,";\n ")}),(function(t){return t.primary&&"\n background-color: ".concat((t.theme.chart||l.Z.chart).primary,";\n ")}),(function(t){return!t.small&&"\n border-radius: ".concat((u.iI+d.Al)/2,"px;\n height: ").concat(1.5*u.iI+d.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(t){return t.small&&"\n border-radius: ".concat((u.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(t){return t.xsmall&&"\n border-radius: ".concat((u.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(t){return t.border&&"\n border: 1px solid ".concat((t.theme.content||l.Z.content).muted,";\n ")}));e.Z=function(t){var e=t.border,n=t.children,r=t.disabled,l=t.label,d=t.monospace,f=t.onClick,p=t.primary,m=t.small,g=t.xsmall;return(0,s.jsx)(h,{border:e,primary:p,small:m,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[n,l&&(0,s.jsx)(a.ZP,{monospace:d,small:m,xsmall:g,children:l}),!r&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!r&&f&&(0,s.jsx)(c.x8,{default:p,muted:!p,size:m?u.iI:1.25*u.iI})]})})})}},10305:function(t,e,n){var r=n(82684),i=n(55485),o=n(38276),a=n(28598);e.Z=function(t){var e=t.children,n=t.onChange,l=(0,r.useState)(r.Children.map(e,(function(){return null}))),c=l[0],u=l[1],d=(0,r.useState)(0),s=d[0],h=d[1];return(0,a.jsx)(i.ZP,{children:r.Children.map(e,(function(t,e){return(0,a.jsx)(o.Z,{ml:e>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(t,{onChange:function(t){u((function(r){return r[e]=t.target.value,n(r,{resetValues:function(){return h((function(t){return t+1}))},setValues:u}),r}))},value:c[e]})},"multi-select-child-".concat(e,"-").concat(s))}))})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[976],{4006:function(t,e,n){n.d(e,{Z:function(){return dt}});var r=n(75582),i=n(82394),o=n(92083),a=n.n(o),l=n(26304),c=n(26226),u=n(84969),d=n(90948),s=n(65743),h=n(39048),f=n(79487),p=n(29989),m=n(61655),g=n(16853),x=n(65376),y=n(55485),v=n(30160),b=n(94035),j=n(95363),k=n(70515),Z=n(21831),w=n(82684),O=n(38626),S=n(48072),P=n(24903),A=n(98677),I=n(84181),L=n(44897),T=n(79633),C=n(61896),M=n(81728);function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:k.iI*(3+k.cd),left:k.iI*k.cd,right:k.iI*k.cd,top:k.iI*k.cd};function N(t,e){return Math.max.apply(Math,(0,Z.Z)(t.map(e)))}function _(t){var e=t.data,n=t.height,r=t.keyForYData,i=t.large,o=t.margin,a=void 0===o?{}:o,l=t.orientationVertical,c=void 0!==l&&l,u=t.showTooltip,d=t.width,s=t.yLabelFormat,h=(0,w.useContext)(O.ThemeContext),f=(0,w.useCallback)((function(t){return t[r]}),[r]),p=s;p||(p=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var m=i?C.iD:C.J5,g=E(E({},F),a),x=e.slice(Math.max(0,e.length-50)),y=(0,w.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(t){return t!==r}))}),[x,r]),v=(0,P.Z)({domain:y,range:[T.a$,T.Ej,T.hM,T.ZA,T.$R,T.X_,T.er,T.hl,T.nQ]}),b=(0,w.useMemo)((function(){return x.map(f)}),[x,f]),j=(0,A.Z)({domain:b,padding:.1}),k=(0,A.Z)({domain:y,padding:.1}),D=(0,I.Z)({domain:[0,N(x,(function(t){return N(y,(function(e){return Number(t[e])}))}))]}),_={active:(null===h||void 0===h?void 0:h.content.default)||L.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||L.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||L.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||L.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||L.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||L.Z.background.navigation},R=b;c&&(R=x.reduce((function(t,e){return t.concat(y.map((function(t){var n=e[t];return(0,M.HW)(n)?parseInt(String(n)):n})))}),[]));var B=Math.min(Math.max.apply(Math,(0,Z.Z)(R.map((function(t){return String(t).length})))),20);g.left+=7*B;var V=d-(g.left+g.right),z=n-(g.top+g.bottom);c?(j.rangeRound([0,V]),D.rangeRound([z,0])):(j.rangeRound([z,0]),D.rangeRound([0,V])),k.rangeRound([0,j.bandwidth()]);var Y=x.map(f).length,H=0;c||(H=j(R[Y-1]));var J=(0,w.useCallback)((function(t){var e=(0,S.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=n-g.left,o=r-g.top,a=0;a=c?(i-H/2)/(V-H):1-(o-H/2)/(z-H);var l=Math.floor(a*Y),d=x[l];"undefined"===typeof d&&(d=x[l-1]),c?i>H&&i<V+g.left-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r}):o>H&&o<z-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r})}),[x,Y,g.left,g.top,c,u,H,V,z]);return{colorScale:v,colors:_,data:x,fontSize:m,handleTooltip:J,margin:g,tempScale:D,tickValues:R,xKeys:y,xMax:V,y1Scale:k,yLabelFormat:p,yMax:z,yScale:j,ySerialize:f}}var R=n(28598),B=["height","width","xAxisLabel","yAxisLabel"];function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=3*k.iI,H=(k.iI,k.iI,k.iI,(0,m.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,o=t.keyForYData,a=void 0===o?"__y":o,l=t.large,c=t.margin,m=void 0===c?{}:c,y=t.renderNoDataText,b=t.renderTooltipContent,k=t.showTooltip,Z=t.tooltipData,w=t.tooltipLeft,O=t.tooltipOpen,S=t.tooltipTop,P=t.width,A=t.xAxisLabel,I=t.xNumTicks,L=t.yLabelFormat,T=_({data:e,height:n,keyForYData:a,large:l,margin:m,showTooltip:k,width:P,yLabelFormat:L}),C=T.colorScale,D=T.colors,E=T.data,F=T.fontSize,N=T.handleTooltip,B=T.margin,V=T.tempScale,H=T.tickValues,J=T.xKeys,W=T.xMax,X=T.y1Scale,K=T.yLabelFormat,G=T.yMax,U=T.yScale,q=T.ySerialize,Q=[];Math.min((null===H||void 0===H?void 0:H.length)||0,Math.floor(n/Y));return null===H||void 0===H||H.forEach((function(t){Q.push(t)})),P<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:n,width:P,children:[y&&!(null!==E&&void 0!==E&&E.length)&&(0,R.jsx)("text",{fill:D.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:F,x:"50%",y:"50%",children:y()}),(0,R.jsx)(s.Z,{fill:"transparent",height:n-(B.top+B.bottom),onMouseLeave:function(){return i()},onMouseMove:N,onTouchMove:N,onTouchStart:N,rx:14,width:P-(B.left+B.right),x:B.left,y:B.top}),(null===E||void 0===E?void 0:E.length)&&(0,R.jsxs)(p.Z,{left:B.left,top:B.top,children:[(0,R.jsx)(h.Z,{color:C,data:E,keys:J,width:W,xScale:V,y0:q,y0Scale:U,y1Scale:X,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{top:t.y0,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.y0))}))}}),(0,R.jsx)(u.Z,{hideTicks:!0,scale:U,stroke:D.muted,tickFormat:function(t){return K(t)},tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:D.muted,tickValues:Q,top:2}),(0,R.jsx)(d.Z,{label:A,labelProps:{fill:D.muted,fontFamily:j.ry,fontSize:F,textAnchor:"middle"},numTicks:I,scale:V,stroke:D.muted,tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,textAnchor:"middle"}},tickStroke:D.muted,top:G})]}),Z&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:B.left,y:S},pointerEvents:"none",stroke:D.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+B.left,y:S}})})]}),O&&Z&&(0,R.jsxs)(g.Z,{left:w,style:z(z({},x.j),{},{backgroundColor:D.tooltipBackground}),top:S,children:[b&&b(Z),!b&&Object.entries(Z).map((function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];if(a!==n){var o=i;return(0,M.HW)(o)&&String(o).split(".").length>=2&&(o=o.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",o]},n)}}))]})]})})));var J=function(t){var e,n=t.height,r=t.width,i=t.xAxisLabel,o=t.yAxisLabel,a=(0,l.Z)(t,B);return e="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?k.iI:null,width:"100%"},children:[o&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:n,width:e},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.width,n=t.height;return(0,R.jsx)(H,z(z({},a),{},{height:n,width:e}))}})})]}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},W=n(95422),X=["keyForYData"],K=["height","width","xAxisLabel","yAxisLabel"];function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=6*k.iI,Q=(0,m.Z)((function(t){var e=t.keyForYData,n=void 0===e?"__y":e,i=(0,l.Z)(t,X),o=i.height,a=i.hideTooltip,c=i.renderNoDataText,h=i.renderTooltipContent,m=i.tooltipData,y=i.tooltipLeft,b=i.tooltipOpen,k=i.tooltipTop,Z=i.width,w=i.xLabelFormat,O=i.xNumTicks,S=i.yNumTicks,P=_(U(U({},i),{},{keyForYData:n,orientationVertical:!0})),A=P.colorScale,I=P.colors,L=P.data,T=P.fontSize,C=P.handleTooltip,D=P.margin,E=P.tempScale,F=(P.tickValues,P.xKeys),N=(P.xMax,P.y1Scale),B=P.yLabelFormat,V=P.yMax,z=P.yScale,Y=P.ySerialize,H=Math.min(O,Z/q);return Z<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:o,width:Z,children:[c&&!(null!==L&&void 0!==L&&L.length)&&(0,R.jsx)("text",{fill:I.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:T,x:"50%",y:"50%",children:c()}),(null===L||void 0===L?void 0:L.length)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Z,{fill:"transparent",height:o-(D.top+D.bottom),onMouseLeave:function(){return a()},onMouseMove:C,onTouchMove:C,onTouchStart:C,rx:14,width:Z-(D.left+D.right),x:D.left,y:2*D.top}),(0,R.jsxs)(p.Z,{top:D.top,children:[(0,R.jsx)(W.Z,{color:A,data:L,height:V,keys:F,x0:Y,x0Scale:z,x1Scale:N,yScale:E,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{left:t.x0+D.left,top:D.top,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.x0))}))}}),(0,R.jsx)(u.Z,{left:D.left,numTicks:S,scale:E,stroke:I.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:I.muted,top:D.top}),(0,R.jsx)(d.Z,{hideTicks:!0,left:D.left,numTicks:H,scale:z,stroke:I.muted,tickFormat:w,tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"middle"}},tickStroke:I.muted,top:V+D.top})]})]}),m&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:y,y:2*D.top},pointerEvents:"none",stroke:I.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:y,y:V+2*D.top}})})]}),b&&m&&(0,R.jsxs)(g.Z,{left:y,style:U(U({},x.j),{},{backgroundColor:I.tooltipBackground}),top:k,children:[h&&h(m),!h&&Object.entries(m).map((function(t){var e=(0,r.Z)(t,2),i=e[0],o=e[1];if(n!==i){var a=o;return(0,M.HW)(a)&&String(a).split(".").length>=2&&(a=a.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[i,": ",a]},i)}})),(0,R.jsx)("br",{}),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[w&&w(Y(m)),!w&&Y(m)]})]})]})}));var $=function(t){var e=t.height,n=t.width,r=t.xAxisLabel,i=t.yAxisLabel,o=(0,l.Z)(t,K);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:r?k.iI:null,width:"100%"},children:[i&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,R.jsx)("div",{style:{height:e,width:i?0===n?n:n-28:n},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(Q,U(U({},o),{},{height:e,width:n}))}})})]}),r&&(0,R.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},tt=n(93859),et=n(52729),nt=n(74168),rt=n(87862),it=n(97301),ot=n(35058),at=n(3917),lt=n(86735);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){var e,n=t.block,o=t.data,l=t.width,c=t.xAxisLabel,u=n.configuration,d=void 0===u?{}:u,s=d||{},h=s.chart_style,f=s.chart_type,p=s.y_sort_order,m=d[ot.JJ]||it.lA,g=(null===d||void 0===d||null===(e=d[ot.bE])||void 0===e?void 0:e.map((function(t){return(0,ot.c0)(t)})))||[],x=at.n1,y=d[ot.Yg];if([ot.aE.HOUR,ot.aE.MINUTE,ot.aE.SECOND].includes(y)&&(x=at.OC),ot.oV.BAR_CHART===f||ot.oV.TIME_SERIES_BAR_CHART===f){var b=o.x,j=o.y,Z=ot.oV.TIME_SERIES_BAR_CHART===f;if(b&&j&&Array.isArray(b)&&Array.isArray(j)){var w,O=null===(w=d[ot.eN])||void 0===w?void 0:w.join(", "),S=null===g||void 0===g?void 0:g.join(", ");g.length||g.push(ot.rj);var P=g[0],A=b.map((function(t,e){return ut({__y:t},g.reduce((function(t,n,r){var o,a=null===j||void 0===j||null===(o=j[r])||void 0===o?void 0:o[e];return"undefined"===typeof a?t:ut(ut({},t),{},(0,i.Z)({},n,a))}),{}))}));ot.JT.HORIZONTAL===h?ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0})):ot.JT.VERTICAL===h&&(ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1})));var I={data:A,height:m,renderNoDataText:function(){return"No data matching query"},width:l,xNumTicks:3};return ot.JT.HORIZONTAL===h?(0,R.jsx)(J,ut(ut({},I),{},{xAxisLabel:S||d[ot.rj],yAxisLabel:c||O||d[ot.a3]})):(0,R.jsx)($,ut(ut({},I),{},{xAxisLabel:c||O,xLabelFormat:function(t){return Z?a()(1e3*t).format(at.n1):t},xNumTicks:A.length,yAxisLabel:S,yNumTicks:5}))}}else if(ot.oV.HISTOGRAM===f){var L,T=o.x,C=o.y,D=null===(L=d[ot.eN])||void 0===L?void 0:L.join(", ");if(T&&C&&Array.isArray(T))return(0,R.jsx)(et.Z,{data:T.map((function(t,e){var n,r=t.max,i=t.min;return[r,null===C||void 0===C||null===(n=C[e])||void 0===n?void 0:n.value,i]})),height:m,width:l,large:!0,margin:{left:5*k.iI,right:1*k.iI,top:3*k.iI},noPadding:!0,renderTooltipContent:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2];return(0,R.jsxs)(v.ZP,{inverted:!0,monospace:!0,small:!0,children:["Count : ",i,(0,R.jsx)("br",{}),"Bucket: ",o,"-",n]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(t){return(0,lt.YC)(t,"[0]")},xAxisLabel:c||D||d[ot.a3],yAxisLabel:D?"count(".concat(D,")"):d[ot.rj]})}else if(ot.oV.LINE_CHART===f||ot.oV.TIME_SERIES_LINE_CHART===f){var E=o.x,F=o.y,N=ot.oV.TIME_SERIES_LINE_CHART===f;if(E&&F&&Array.isArray(E)&&Array.isArray(F)&&Array.isArray(null===F||void 0===F?void 0:F[0])){var _,B=g;d[ot.e]&&(B=d[ot.e].split(",").map((function(t){return t.trim()})));var V=E.map((function(t,e){return{x:t,y:(0,lt.w6)(F.length).map((function(t,n){var r=F[n][e];return"undefined"===typeof r||null===r?0:r}))}})),z=null===(_=d[ot.eN])||void 0===_?void 0:_.join(", "),Y=g.join(", ");return(0,R.jsx)(nt.Z,{data:V,height:m,lineLegendNames:B,margin:{bottom:8*k.iI,left:5*k.iI},noCurve:!0,renderXTooltipContent:function(t){t.index;var e=t.x,n=d[ot.a3],r=e;return d[ot.eN]&&(n=d[ot.eN].map(String).join(", ")),N&&(r=a()(1e3*e).format(x)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",r]})},renderYTooltipContent:function(t,e){var n=t.y;return(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[B&&B[e]&&"".concat(B[e],": "),n&&(0,M.x6)((0,M.QV)(n[e],4))]})},width:l?l-(3*k.iI+3):l,xAxisLabel:c||z||String(d[ot.a3]||""),xLabelFormat:function(t){return N?a()(1e3*t).format(at.n1):t},yAxisLabel:Y||String(d[ot.rj]),yLabelFormat:function(t){return t}})}}else if(ot.oV.PIE_CHART===f){var H,W=o[String(d[ot.a3]||ot.a3)],X=null===(H=d[ot.eN])||void 0===H?void 0:H.join(", ");if(W)return(0,R.jsx)(rt.Z,{data:Object.entries(W),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,M.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:m,width:l,xAxisLabel:c||X||String(d[ot.a3]||"")})}else if(ot.oV.TABLE===f){var K=o.index,G=o.x,U=o.y;return Array.isArray(G)&&Array.isArray(U)&&Array.isArray(U[0])&&(0,R.jsx)(tt.Z,{columns:G,height:d[ot.JJ]?null:m,index:K,maxHeight:d[ot.JJ]?m:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:U,width:l})}return(0,R.jsx)("div",{})}},97301:function(t,e,n){n.d(e,{T7:function(){return d},Tb:function(){return u},lA:function(){return l},pM:function(){return c},y9:function(){return s}});var r=n(38626),i=n(44897),o=n(42631),a=n(70515),l=40*a.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*a.iI,.5*a.iI,1*a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeArea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*a.iI,1*a.iI),d=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],a.iI/2,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],a.cd*a.iI,a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||i.Z.borders).medium,";\n ")}))},52729:function(t,e,n){n.d(e,{Z:function(){return V}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(84969),u=n(90948),d=n(65743),s=n(29989),h=n(38626),f=n(61655),p=n(16853),m=n(65376),g=n(48072),x=n(98677),y=n(84181),v=n(55485),b=n(4190),j=n(30160),k=n(94035),Z=n(70987),w=n(79633),O=n(89370),S=n(95363),P=n(61896),A=n(70515),I=n(88543),L=n(6568),T=function(t){return t.slice(0,10)},C=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},M=n(79221),D=n(98684),E=n(28598),F=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={bottom:A.iI,left:3*A.iI,right:0,top:1*A.iI},B=(0,f.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,f=t.getYValue,v=t.height,b=t.hideTooltip,k=t.large,F=t.margin,N=void 0===F?{}:F,B=t.muted,V=t.noPadding,z=t.numberOfXTicks,Y=t.renderTooltipContent,H=t.selected,J=t.showAxisLabels,W=t.showTooltip,X=t.showYAxisLabels,K=t.showZeroes,G=t.sortData,U=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=k?P.J5:P.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return f?f(t):t[1]}),[f]),at=(0,a.useContext)(h.ThemeContext),lt=e===O.RL.DATETIME,ct=_(_({},R),N);J&&(ct=_(_({},ct),{},{left:ct.left+A.iI}));var ut=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),dt=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ut.slice(0,60),st=tt-(ct.left+ct.right),ht=v-(ct.bottom+ct.top),ft=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,L.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(dt,st):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],c=n[o];if(l&&c){var u=new Date(l),d=new Date(c),s=C(u,d);if(e>=u&&e<d)r[s]=(r[s]||0)+a;else for(;o<n.length||!r[s];)if(i+=1,o+=1,u=new Date(n[i]),d=new Date(n[o]),s=C(u,d),e>=u&&e<d)return void(r[s]=(r[s]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=T(e),o=T(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(dt,ft);dt=ft?Object.entries(pt).sort((function(t,e){return new Date(T(t[0]))-new Date(T(e[0]))})):dt;var mt=ft?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=dt.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),xt=gt.length,yt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(xt,tt,lt),vt=(0,x.Z)({domain:gt,paddingInner:V?null:yt,range:[0,st],round:!1}),bt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(dt.map(ot)))],range:[ht,0],round:!0}),jt=(0,D.K)(at),kt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=kt.default;B?Zt=kt.muted:H&&(Zt=kt.selected);var wt=xt?lt?mt:Math.max.apply(Math,(0,i.Z)(dt.map((function(t){return ot(t)})))):0,Ot=Math.floor(wt/6),St=[0],Pt=0;if(wt>6)for(;Pt<wt;)St.push(Pt+Ot),Pt+=Ot;else for(;Pt<=wt;)St.push(Pt+1),Pt+=1;wt>9999?ct=_(_({},ct),{},{left:k?8*A.iI:4.1*A.iI}):wt>999&&(ct=_(_({},ct),{},{left:k?5*A.iI:3.6*A.iI}));var At=lt?2.25:0,It=xt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||X,Lt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(J?ct.left:0))/st,o=Math.floor(xt*i),a=dt[o];"undefined"===typeof a&&(a=dt[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var c=Y?Y(a):"".concat(l," (").concat(ot(a),")");W({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[dt,xt,it,ot,ct.left,ct.top,Y,J,W,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:v+ct.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(s.Z,{left:J?ct.left:0,top:ct.top+At,children:dt.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=vt.bandwidth(),l=ht-(null!==(i=bt(r))&&void 0!==i?i:0),c=vt(n),u=ht-l;t.push((0,E.jsx)(d.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:a,x:c,y:u},"bar-".concat(n)))}return t}),[])}),J&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c.Z,{left:ct.left,scale:bt,stroke:kt.muted,tickFormat:function(t){return nt?nt(t):(0,M.P5)(t)},tickLabelProps:function(){return{fill:kt.active,fontFamily:S.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:kt.muted,tickValues:St,top:ct.top+At}),(0,E.jsx)(u.Z,{left:ct.left,numTicks:lt?void 0:z||6,orientation:"top",scale:ft||vt,stroke:kt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?kt.active:"transparent",fontFamily:S.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ft(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(A.iI,")")},tickStroke:It?kt.muted:"transparent",top:ht+ct.top+At})]})]}),Q&&U&&(0,E.jsx)(p.Z,{left:q,style:m.j,top:$,children:(0,E.jsx)(j.ZP,{color:w.E5,small:!0,children:U})})]})}));var V=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,F);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:A.iI,width:"100%"},children:[c&&(0,E.jsx)(v.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(k.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,E.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(B,_(_({},u),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(38626),u=n(90948),d=n(84969),s=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),g=n(29989),x=n(17066),y=n(84482),v=n(76771),b=n(98889),j=n(65376),k=n(61655),Z=n(97745),w=n(48072),O=n(10103),S=n(84181),P=n(24903),A=n(55485),I=n(30160),L=n(94035),T=n(44897),C=n(8454),M=n(79633),D=n(95363),E=n(61896),F=n(70515),N=n(86735),_=n(79221),R=n(98684),B=n(28598),V=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H=Y(Y({},j.j),{},{backgroundColor:T.Z.background.muted,border:"none"}),J=(0,k.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,k=t.getY,A=t.getYScaleValues,L=t.gridProps,V=void 0===L?{}:L,z=t.height,J=t.hideGridX,W=t.hideTooltip,X=t.increasedXTicks,K=t.lineLegendNames,G=t.margin,U=t.noCurve,q=t.numYTicks,Q=t.renderXTooltipContent,$=t.renderYTooltipContent,tt=t.showTooltip,et=t.thickStroke,nt=t.tooltipData,rt=t.tooltipLeft,it=void 0===rt?0:rt,ot=t.tooltipTop,at=void 0===ot?[]:ot,lt=t.width,ct=t.xLabelFormat,ut=t.xLabelRotate,dt=void 0===ut||ut,st=t.yLabelFormat,ht=(0,a.useContext)(c.ThemeContext),ft=l||function(t){return null===t||void 0===t?void 0:t.x},pt=k||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},mt=T.Z.monotone.gray,gt=T.Z.brand.wind200,xt=T.Z.content.muted,yt=T.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(lt<10)return null;var bt=lt-G.left-G.right,jt=z-G.top-G.bottom,kt=bt/2,Zt=0===n.length?0:Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),wt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,bt]})}),[bt,vt]),Ot=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),St=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),Pt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Ot,St],nice:!0,range:[jt,0]})}),[jt,St,Ot]),At=lt>520?X?20:10:X?10:5,It=(0,R.K)(ht),Lt=xt,Tt=It.map((function(t){return{stroke:t}})),Ct=(0,P.Z)({domain:K||[],range:Tt.map((function(t){return t.stroke}))}),Mt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=wt.invert(e-G.left),i=(0,N.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,O.range)(0,Zt).map((function(t){return Pt(pt(l,t))})),u=c.some((function(t){return"undefined"===typeof t}));(pt(l)||A&&!u)&&tt({tooltipData:Y(Y({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,pt,A,G,tt,wt,vt,Pt]),Dt={};return U||(Dt.curve=Z.ZP),(0,B.jsxs)(B.Fragment,{children:[K&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(x.Z,{labelFormat:function(t){return t},scale:Ct,children:function(t){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:t.map((function(t,e){return(0,B.jsxs)(y.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,B.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,B.jsxs)("svg",{height:z,width:lt,children:[!e&&(0,B.jsx)(s.Z,{fill:"transparent",height:z,onMouseLeave:function(){return W()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,rx:14,width:lt-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(g.Z,{left:G.left,top:G.top,children:[!J&&(0,B.jsx)(p.Z,Y({height:jt,pointerEvents:"none",scale:wt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)(m.Z,Y({height:jt,pointerEvents:"none",scale:Pt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)("line",{stroke:mt,x1:bt,x2:bt,y1:0,y2:jt}),(0,B.jsx)(u.Z,{numTicks:At,scale:wt,stroke:Lt,tickFormat:function(t){return ct?ct(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"middle",transform:dt&&"rotate(-45, ".concat(wt(t),", 0) translate(-32, 4)")}},tickStroke:Lt,top:jt}),(0,B.jsx)(d.Z,{hideTicks:!0,numTicks:q,scale:Pt,stroke:Lt,tickFormat:function(t){return st?st(t):(0,_.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Lt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(b.Z,Y(Y({},Dt),{},{aboveAreaProps:{fill:T.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:gt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return wt(ft(t))},y0:function(t){return Pt("undefined"===typeof r?Ot:pt(t,r))},y1:function(t){return Pt(pt(t,e))}}))})),(0,O.range)(0,Zt).map((function(t){return(0,a.createElement)(h.Z,Y(Y({},Dt),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:et?2:1,x:function(t){return wt(ft(t))},y:function(e){return Pt(e.y&&(t>=e.y.length?Ot:pt(e,t)))}},Tt[t]))}))]}),nt&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:it,y:G.top},pointerEvents:"none",stroke:M.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:it,y:jt+G.top}}),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+1+G.top,fill:Tt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+G.top,fill:Tt[e].stroke,pointerEvents:"none",r:4,stroke:Tt[e].stroke,strokeWidth:2},e)}))]})]}),nt&&(0,B.jsxs)("div",{children:[at.map((function(t,e){var n=pt(nt,e);return e>=1&&Math.abs(at[e-1]-t)<5*F.iI&&(t+=3*F.iI),(0,B.jsxs)(j.Z,{left:it>kt?it-(0,_.Vs)($,nt,e)*F.iI:it+F.iI,style:H,top:t-2*F.iI,children:[$&&$(nt,e),!$&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[e]]})]},e)})),(0,B.jsxs)(j.Z,{left:it>kt?it-4*(0,_.Vs)(Q,nt):it,style:Y(Y({},H),{},{transform:"translateX(-65%)"}),top:jt+G.top,children:[Q&&Q(nt),!Q&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:ft(nt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,V),m=Y(Y({},{bottom:3*F.iI,left:5*F.iI,right:3*F.iI,top:3*F.iI}),c);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:i,marginBottom:F.iI,width:"100%"},children:[h&&(0,B.jsx)(A.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(L.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,B.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,B.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,B.jsx)(J,Y(Y({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,B.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return A}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),c=n(82684),u=n(29989),d=n(38626),s=n(11684),h=n(24903),f=n(30160),p=n(44897),m=n(95363),g=n(61896),x=n(70515),y=n(98684),v=n(28598),b=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},w=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function S(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,c=t.textColor;return(0,s.useTransition)(n,{enter:O,from:e?w:O,keys:i,leave:e?w:O,update:O})((function(t,e,n){var u=n.key,d=r.centroid(e),h=(0,o.Z)(d,2),f=h[0],p=h[1],x=e.endAngle-e.startAngle>=.1;return(0,v.jsxs)("g",{children:[(0,v.jsx)(s.animated.path,{d:(0,s.to)([t.startAngle,t.endAngle],(function(t,n){return r(k(k({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),x&&(0,v.jsx)(s.animated.g,{style:{opacity:t.opacity},children:(0,v.jsx)("text",{dy:".33em",fill:c,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:f,y:p,children:i(e)})})]},u)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,s=t.margin,f=void 0===s?Z:s,m=t.textColor,g=t.width,b=(0,c.useState)(null),j=b[0],w=b[1],O=(0,c.useContext)(d.ThemeContext),P=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var A=(0,h.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(O)}),I=g-f.left-f.right,L=a-f.top-f.bottom,T=Math.min(I,L)/2,C=L/2,M=I/2,D=Math.min(I/4,12*x.iI);return(0,v.jsx)("svg",{height:a,width:g,children:(0,v.jsx)(u.Z,{left:M+f.left,top:C+f.top,children:(0,v.jsx)(l.Z,{cornerRadius:x.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(T-D,12.25),outerRadius:T,padAngle:.005,pieValue:o,children:function(t){return(0,v.jsx)(S,k(k({},t),{},{animate:n,getColor:function(t){var e=t.data;return A(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:P}))}})})})}function A(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:l,children:(0,v.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,v.jsx)(P,k(k({},o),{},{height:n,width:e}))}})}),i&&(0,v.jsx)("div",{style:{paddingTop:4},children:(0,v.jsx)(f.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,c=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,h=n.fire400,f=n.water200,p=n.water300,m=n.water400,g=n.wind200,x=n.wind300,y=n.wind400,v=e.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([y,m,h,u,a,x,p,s,c,o,g,f,d,l,i])}},94035:function(t,e,n){var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},31882:function(t,e,n){var r=n(38626),i=n(71180),o=n(55485),a=n(30160),l=n(44897),c=n(72473),u=n(70515),d=n(61896),s=n(28598),h=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(t){return!t.primary&&"\n background-color: ".concat((t.theme.background||l.Z.background).tag,";\n ")}),(function(t){return t.primary&&"\n background-color: ".concat((t.theme.chart||l.Z.chart).primary,";\n ")}),(function(t){return!t.small&&"\n border-radius: ".concat((u.iI+d.Al)/2,"px;\n height: ").concat(1.5*u.iI+d.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(t){return t.small&&"\n border-radius: ".concat((u.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(t){return t.xsmall&&"\n border-radius: ".concat((u.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(t){return t.border&&"\n border: 1px solid ".concat((t.theme.content||l.Z.content).muted,";\n ")}));e.Z=function(t){var e=t.border,n=t.children,r=t.disabled,l=t.label,d=t.monospace,f=t.onClick,p=t.primary,m=t.small,g=t.xsmall;return(0,s.jsx)(h,{border:e,primary:p,small:m,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[n,l&&(0,s.jsx)(a.ZP,{monospace:d,small:m,xsmall:g,children:l}),!r&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!r&&f&&(0,s.jsx)(c.x8,{default:p,muted:!p,size:m?u.iI:1.25*u.iI})]})})})}},10305:function(t,e,n){var r=n(82684),i=n(55485),o=n(38276),a=n(28598);e.Z=function(t){var e=t.children,n=t.onChange,l=(0,r.useState)(r.Children.map(e,(function(){return null}))),c=l[0],u=l[1],d=(0,r.useState)(0),s=d[0],h=d[1];return(0,a.jsx)(i.ZP,{children:r.Children.map(e,(function(t,e){return(0,a.jsx)(o.Z,{ml:e>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(t,{onChange:function(t){u((function(r){return r[e]=t.target.value,n(r,{resetValues:function(){return h((function(t){return t+1}))},setValues:u}),r}))},value:c[e]})},"multi-select-child-".concat(e,"-").concat(s))}))})}}}]);
|