From f8e3d3c575943f4bc13e6ad7f73da6f198456c1c Mon Sep 17 00:00:00 2001 From: github-actions-bot Date: Mon, 13 May 2024 11:52:48 +0000 Subject: [PATCH] Updates --- 404.html | 4 +- .../back-spread-with-calls.json | 0 .../back-spread-with-puts.json | 0 .../broken-wing-butterfly-with-calls.json | 0 .../broken-wing-butterfly-with-puts.json | 0 .../butterfly-spread-with-calls.json | 0 .../butterfly-spread-with-puts.json | 0 .../christmas-tree-spread-with-calls.json | 0 .../christmas-tree-spread-with-puts.json | 0 .../diagonal-spread-with-calls.json | 0 .../diagonal-spread-with-puts.json | 0 .../front-spread-with-calls.json | 0 .../front-spread-with-puts.json | 0 .../index.json | 0 .../iron-butterfly.json | 0 .../iron-condor.json | 0 .../long-box-spread.json | 0 .../long-calendar-spread-with-calls.json | 0 .../long-calendar-spread-with-puts.json | 0 .../long-call-spread.json | 0 .../long-call.json | 0 .../long-jelly-roll.json | 0 .../long-put-spread.json | 0 .../long-put.json | 0 .../long-straddle.json | 0 .../long-strangle.json | 0 .../poor-mans-covered-call.json | 0 .../risk-reversal.json | 0 .../short-box-spread.json | 0 .../short-call-spread.json | 0 .../short-call.json | 0 .../short-jelly-roll.json | 0 .../short-put-spread.json | 0 .../short-put.json | 0 .../short-straddle.json | 0 .../short-strangle.json | 0 .../synthetic-long.json | 0 .../synthetic-short.json | 0 .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 ...c19be6352bc.js => 657-3d8894476f6ec8c9.js} | 2 +- back-spread-with-calls.html | 2 +- back-spread-with-puts.html | 2 +- broken-wing-butterfly-with-calls.html | 2 +- broken-wing-butterfly-with-puts.html | 2 +- butterfly-spread-with-calls.html | 2 +- butterfly-spread-with-puts.html | 2 +- christmas-tree-spread-with-calls.html | 2 +- christmas-tree-spread-with-puts.html | 2 +- diagonal-spread-with-calls.html | 2 +- diagonal-spread-with-puts.html | 2 +- front-spread-with-calls.html | 2 +- front-spread-with-puts.html | 2 +- index.html | 2 +- iron-butterfly.html | 2 +- iron-condor.html | 2 +- long-box-spread.html | 2 +- long-calendar-spread-with-calls.html | 2 +- long-calendar-spread-with-puts.html | 2 +- long-call-spread.html | 2 +- long-call.html | 2 +- long-jelly-roll.html | 2 +- long-put-spread.html | 2 +- long-put.html | 2 +- long-straddle.html | 2 +- long-strangle.html | 2 +- poor-mans-covered-call.html | 2 +- risk-reversal.html | 2 +- short-box-spread.html | 2 +- short-call-spread.html | 2 +- short-call.html | 2 +- short-jelly-roll.html | 2 +- short-put-spread.html | 2 +- short-put.html | 2 +- short-straddle.html | 2 +- short-strangle.html | 2 +- sitemap.xml | 74 +++++++++---------- synthetic-long.html | 2 +- synthetic-short.html | 2 +- 79 files changed, 78 insertions(+), 78 deletions(-) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/back-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/back-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/broken-wing-butterfly-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/broken-wing-butterfly-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/butterfly-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/butterfly-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/christmas-tree-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/christmas-tree-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/diagonal-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/diagonal-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/front-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/front-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/index.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/iron-butterfly.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/iron-condor.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-box-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-calendar-spread-with-calls.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-calendar-spread-with-puts.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-call-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-call.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-jelly-roll.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-put-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-put.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-straddle.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/long-strangle.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/poor-mans-covered-call.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/risk-reversal.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-box-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-call-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-call.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-jelly-roll.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-put-spread.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-put.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-straddle.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/short-strangle.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/synthetic-long.json (100%) rename _next/data/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/synthetic-short.json (100%) rename _next/static/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/_buildManifest.js (86%) rename _next/static/{YFQcYx5Ym6-CGpnf52UpE => HlU_D2G67mRyWW0rD6UmO}/_ssgManifest.js (100%) rename _next/static/chunks/{657-3420bc19be6352bc.js => 657-3d8894476f6ec8c9.js} (89%) diff --git a/404.html b/404.html index cbd323e..c928946 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/back-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/back-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/back-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/back-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/back-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/back-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/back-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/back-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/broken-wing-butterfly-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/broken-wing-butterfly-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/broken-wing-butterfly-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/broken-wing-butterfly-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/broken-wing-butterfly-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/broken-wing-butterfly-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/broken-wing-butterfly-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/broken-wing-butterfly-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/butterfly-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/butterfly-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/butterfly-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/butterfly-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/butterfly-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/butterfly-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/butterfly-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/butterfly-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/christmas-tree-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/christmas-tree-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/christmas-tree-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/christmas-tree-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/christmas-tree-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/christmas-tree-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/christmas-tree-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/christmas-tree-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/diagonal-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/diagonal-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/diagonal-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/diagonal-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/diagonal-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/diagonal-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/diagonal-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/diagonal-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/front-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/front-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/front-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/front-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/front-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/front-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/front-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/front-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/index.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/index.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/index.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/index.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/iron-butterfly.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/iron-butterfly.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/iron-butterfly.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/iron-butterfly.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/iron-condor.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/iron-condor.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/iron-condor.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/iron-condor.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-box-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-box-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-box-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-box-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-calendar-spread-with-calls.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-calendar-spread-with-calls.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-calendar-spread-with-calls.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-calendar-spread-with-calls.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-calendar-spread-with-puts.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-calendar-spread-with-puts.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-calendar-spread-with-puts.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-calendar-spread-with-puts.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-call-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-call-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-call-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-call-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-call.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-call.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-call.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-call.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-jelly-roll.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-jelly-roll.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-jelly-roll.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-jelly-roll.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-put-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-put-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-put-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-put-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-put.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-put.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-put.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-put.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-straddle.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-straddle.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-straddle.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-straddle.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/long-strangle.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/long-strangle.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/long-strangle.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/long-strangle.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/poor-mans-covered-call.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/poor-mans-covered-call.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/poor-mans-covered-call.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/poor-mans-covered-call.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/risk-reversal.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/risk-reversal.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/risk-reversal.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/risk-reversal.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-box-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-box-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-box-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-box-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-call-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-call-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-call-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-call-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-call.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-call.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-call.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-call.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-jelly-roll.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-jelly-roll.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-jelly-roll.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-jelly-roll.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-put-spread.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-put-spread.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-put-spread.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-put-spread.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-put.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-put.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-put.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-put.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-straddle.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-straddle.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-straddle.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-straddle.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/short-strangle.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/short-strangle.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/short-strangle.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/short-strangle.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/synthetic-long.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/synthetic-long.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/synthetic-long.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/synthetic-long.json diff --git a/_next/data/YFQcYx5Ym6-CGpnf52UpE/synthetic-short.json b/_next/data/HlU_D2G67mRyWW0rD6UmO/synthetic-short.json similarity index 100% rename from _next/data/YFQcYx5Ym6-CGpnf52UpE/synthetic-short.json rename to _next/data/HlU_D2G67mRyWW0rD6UmO/synthetic-short.json diff --git a/_next/static/YFQcYx5Ym6-CGpnf52UpE/_buildManifest.js b/_next/static/HlU_D2G67mRyWW0rD6UmO/_buildManifest.js similarity index 86% rename from _next/static/YFQcYx5Ym6-CGpnf52UpE/_buildManifest.js rename to _next/static/HlU_D2G67mRyWW0rD6UmO/_buildManifest.js index f7d4188..778dcea 100644 --- a/_next/static/YFQcYx5Ym6-CGpnf52UpE/_buildManifest.js +++ b/_next/static/HlU_D2G67mRyWW0rD6UmO/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(s,e){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,e,"static/chunks/pages/index-dc76de25cb617a27.js"],"/_error":["static/chunks/pages/_error-a4ba2246ff8fb532.js"],"/[strat]":[s,e,"static/chunks/pages/[strat]-c48d03e50d4df47b.js"],sortedPages:["/","/_app","/_error","/[strat]"]}}("static/chunks/657-3420bc19be6352bc.js","static/chunks/277-4d41135fdf3dfa22.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(s,e){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[s,e,"static/chunks/pages/index-dc76de25cb617a27.js"],"/_error":["static/chunks/pages/_error-a4ba2246ff8fb532.js"],"/[strat]":[s,e,"static/chunks/pages/[strat]-c48d03e50d4df47b.js"],sortedPages:["/","/_app","/_error","/[strat]"]}}("static/chunks/657-3d8894476f6ec8c9.js","static/chunks/277-4d41135fdf3dfa22.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/YFQcYx5Ym6-CGpnf52UpE/_ssgManifest.js b/_next/static/HlU_D2G67mRyWW0rD6UmO/_ssgManifest.js similarity index 100% rename from _next/static/YFQcYx5Ym6-CGpnf52UpE/_ssgManifest.js rename to _next/static/HlU_D2G67mRyWW0rD6UmO/_ssgManifest.js diff --git a/_next/static/chunks/657-3420bc19be6352bc.js b/_next/static/chunks/657-3d8894476f6ec8c9.js similarity index 89% rename from _next/static/chunks/657-3420bc19be6352bc.js rename to _next/static/chunks/657-3d8894476f6ec8c9.js index ac6058b..e546d74 100644 --- a/_next/static/chunks/657-3420bc19be6352bc.js +++ b/_next/static/chunks/657-3d8894476f6ec8c9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[657],{8177:function(t){function e(t){var e=0;if(t>=8)e=1;else if(t<=-8)e=0;else{for(var r=0;r<100;r++)e+=Math.pow(t,2*r+1)/n(2*r+1);e*=Math.pow(Math.E,-.5*Math.pow(t,2)),e/=Math.sqrt(2*Math.PI),e+=.5}return e}function n(t){for(var e=1,n=t;n>1;n-=2)e*=n;return e}t.exports={blackScholes:function(t,n,r,o,i,a){var s=(i*r+Math.pow(o,2)*r/2-Math.log(n/t))/(o*Math.sqrt(r));return"call"===a?t*e(s)-n*Math.pow(Math.E,-1*i*r)*e(s-o*Math.sqrt(r)):n*Math.pow(Math.E,-1*i*r)*e(o*Math.sqrt(r)-s)-t*e(-s)},stdNormCDF:e,getW:function(t,e,n,r,o){return(o*n+Math.pow(r,2)*n/2-Math.log(e/t))/(r*Math.sqrt(n))}}},4779:function(t,e,n){var r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object GeneratorFunction]",s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")();function l(t,e){for(var n=-1,r=e.length,o=t.length;++n0&&n(s)?e>1?m(s,e-1,n,r,o):l(o,s):r||(o[o.length]=s)}return o}function y(t){return b(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?p.call(t):"";return e==i||e==a}(t)}(t)}(t)&&h.call(t,"callee")&&(!v.call(t,"callee")||p.call(t)==o)}(t)||!!(g&&t&&t[g])}var b=Array.isArray;t.exports=function(t){return(t?t.length:0)?m(t,Infinity):[]}},6646:function(t,e,n){"use strict";n.d(e,{Z:function(){return _i},x:function(){return mi}});var r=n(828),o=n(943);var i=n(3375);var a=n(1566);function s(t){return function(t){if(Array.isArray(t))return(0,o.Z)(t)}(t)||(0,i.Z)(t)||(0,a.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=n(7294);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n0)-(t<0)},S=function(t){return"function"===typeof t?t:function(){return t}};function k(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}var C="mouseenter.interaction",M="mouseleave.interaction",D="mousemove.pan",O="mouseup.pan",A="touchmove.pan",E="touchend.pan touchcancel.pan";function T(t){return{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY}}function N(t,e){if(!e||!t)return t?t[0]:void 0;for(var n,r=0;r=0;o--)if(r=t[o],I(e(r)))return r}var I=function(t){return null!==t&&void 0!==t};function z(t){return!I(t)}function F(t,e){var n=e.currentTarget,r=n.getBoundingClientRect(),o=t.clientX-r.left-n.clientLeft,i=t.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(i)]}function W(t,e){var n=t.currentTarget,r=null!==e&&void 0!==e?e:n.getBoundingClientRect(),o=t.clientX-r.left-n.clientLeft,i=t.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(i)]}function L(t,e){t.forEach((function(t){t.setTransform(1,0,0,1,0,0),t.clearRect(-1,-1,t.canvas.width+2,t.canvas.height+2),t.scale(e,e)}))}var X={mouseleave:"mousemove",panend:"pan",pinchzoom:"pan",mousedown:"mousemove",click:"mousemove",contextmenu:"mousemove",dblclick:"mousemove",dragstart:"drag",dragend:"drag",dragcancel:"drag",zoom:"zoom"},q=function(t){p(n,t);var e=y(n);function n(t,r){var o;u(this,n),(o=e.call(this,t,r)).moreProps={},o.dragInProgress=!1,o.evaluationInProgress=!1,o.iSetTheCursorClass=!1,o.listener=function(t,e,n,r){void 0!==e&&o.updateMoreProps(e),o.evaluationInProgress=!0,o.evaluateType(t,r),o.evaluationInProgress=!1},o.drawOnCanvas=o.drawOnCanvas.bind(g(o)),o.getMoreProps=o.getMoreProps.bind(g(o)),o.draw=o.draw.bind(g(o)),o.updateMoreProps=o.updateMoreProps.bind(g(o)),o.evaluateType=o.evaluateType.bind(g(o)),o.isHover=o.isHover.bind(g(o)),o.preCanvasDraw=o.preCanvasDraw.bind(g(o)),o.postCanvasDraw=o.postCanvasDraw.bind(g(o)),o.getPanConditions=o.getPanConditions.bind(g(o)),o.shouldTypeProceed=o.shouldTypeProceed.bind(g(o)),o.preEvaluate=o.preEvaluate.bind(g(o));var i=r.generateSubscriptionId;return o.suscriberId=i(),o.state={updateCount:0},o}return f(n,[{key:"updateMoreProps",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.moreProps[n]=t[n]}))}},{key:"shouldTypeProceed",value:function(t,e){return!0}},{key:"preEvaluate",value:function(t,e,n){}},{key:"evaluateType",value:function(t,e){var n=X[t]||t;if(this.props.drawOn.indexOf(n)>-1&&(this.preEvaluate(t,this.moreProps,e),this.shouldTypeProceed(t,this.moreProps)))switch(t){case"zoom":case"mouseenter":break;case"mouseleave":this.moreProps.hovering=!1,this.props.onUnHover&&this.props.onUnHover(e,this.getMoreProps());break;case"contextmenu":this.props.onContextMenu&&this.props.onContextMenu(e,this.getMoreProps()),this.moreProps.hovering&&this.props.onContextMenuWhenHover&&this.props.onContextMenuWhenHover(e,this.getMoreProps());break;case"mousedown":this.props.onMouseDown&&this.props.onMouseDown(e,this.getMoreProps());break;case"click":var r=this.props,o=r.onClick,i=r.onClickOutside,a=r.onClickWhenHover,s=this.getMoreProps();s.hovering&&void 0!==a?a(e,s):void 0!==i&&i(e,s),void 0!==o&&o(e,s);break;case"mousemove":var c=this.moreProps.hovering;this.moreProps.hovering=this.isHover(e);var u=this.context,l=u.amIOnTop,f=u.setCursorClass;this.moreProps.hovering&&!this.props.selected&&l(this.suscriberId)&&void 0!==this.props.onHover?(f("react-financial-charts-pointer-cursor"),this.iSetTheCursorClass=!0):this.moreProps.hovering&&this.props.selected&&l(this.suscriberId)?(f(this.props.interactiveCursorClass),this.iSetTheCursorClass=!0):c&&!this.moreProps.hovering&&this.iSetTheCursorClass&&(this.iSetTheCursorClass=!1,f(null));var h=this.getMoreProps();this.moreProps.hovering&&!c&&this.props.onHover&&this.props.onHover(e,h),c&&!this.moreProps.hovering&&this.props.onUnHover&&this.props.onUnHover(e,h),this.props.onMouseMove&&this.props.onMouseMove(e,h);break;case"dblclick":var p=this.getMoreProps();this.props.onDoubleClick&&this.props.onDoubleClick(e,p),this.moreProps.hovering&&this.props.onDoubleClickWhenHover&&this.props.onDoubleClickWhenHover(e,p);break;case"pan":this.moreProps.hovering=!1,this.props.onPan&&this.props.onPan(e,this.getMoreProps());break;case"panend":this.props.onPanEnd&&this.props.onPanEnd(e,this.getMoreProps());break;case"dragstart":if(this.getPanConditions().draggable)(0,this.context.amIOnTop)(this.suscriberId)&&(this.dragInProgress=!0,void 0!==this.props.onDragStart&&this.props.onDragStart(e,this.getMoreProps()));break;case"drag":this.dragInProgress&&this.props.onDrag&&this.props.onDrag(e,this.getMoreProps());break;case"dragend":this.dragInProgress&&this.props.onDragComplete&&this.props.onDragComplete(e,this.getMoreProps()),this.dragInProgress=!1;break;case"dragcancel":if(this.dragInProgress||this.iSetTheCursorClass)(0,this.context.setCursorClass)(null)}}},{key:"isHover",value:function(t){var e=this.props.isHover;return void 0!==e&&e(this.getMoreProps(),t)}},{key:"getPanConditions",value:function(){return{draggable:!(!this.props.selected||!this.moreProps.hovering)||this.props.enableDragOnHover&&this.moreProps.hovering,panEnabled:!this.props.disablePan}}},{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},e=t.trigger,n=t.force,r=X[e]||e,o=this.props.drawOn.indexOf(r)>-1;if(o||this.props.selected||n){var i=this.props.canvasDraw;if(void 0===i){var a=this.state.updateCount;this.setState({updateCount:a+1})}else this.drawOnCanvas()}}},{key:"UNSAFE_componentWillMount",value:function(){var t=this.context,e=t.subscribe,n=t.chartId,r=this.props,o=r.clip,i=r.edgeClip;e(this.suscriberId,{chartId:n,clip:o,edgeClip:i,listener:this.listener,draw:this.draw,getPanConditions:this.getPanConditions}),this.UNSAFE_componentWillReceiveProps(this.props,this.context)}},{key:"componentWillUnmount",value:function(){((0,this.context.unsubscribe)(this.suscriberId),this.iSetTheCursorClass)&&(0,this.context.setCursorClass)(null)}},{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.canvasDraw,r=e.selected,o=e.interactiveCursorClass;if(t.selected!==r){var i=this.context.setCursorClass;r&&this.moreProps.hovering?(this.iSetTheCursorClass=!0,i(o)):(this.iSetTheCursorClass=!1,i(null))}void 0===n||this.evaluationInProgress||(this.updateMoreProps(this.moreProps),this.drawOnCanvas())}},{key:"UNSAFE_componentWillReceiveProps",value:function(t,e){var n=e.xScale,r=e.plotData,o=e.chartConfig,i=e.getMutableState;this.moreProps=Object.assign(Object.assign(Object.assign({},this.moreProps),i()),{xScale:n,plotData:r,chartConfig:o})}},{key:"getMoreProps",value:function(){var t=this.context,e=t.xScale,n=t.plotData,r=t.chartConfig,o=t.morePropsDecorator,i=t.xAccessor,a=t.displayXAccessor,s=t.width,c=t.height,u=this.context,l=u.chartId,f=u.fullData,h=Object.assign({xScale:e,plotData:n,chartConfig:r,xAccessor:i,displayXAccessor:a,width:s,height:c,chartId:l,fullData:f},this.moreProps);return(o||_)(h)}},{key:"preCanvasDraw",value:function(t,e){}},{key:"postCanvasDraw",value:function(t,e){}},{key:"drawOnCanvas",value:function(){var t=this.props,e=t.canvasDraw,n=t.canvasToDraw;if(void 0!==e&&void 0!==n){var r=this.context.getCanvasContexts,o=this.getMoreProps(),i=n(r());void 0!==i&&(this.preCanvasDraw(i,o),e(i,o),this.postCanvasDraw(i,o))}}},{key:"render",value:function(){var t=this.props,e=t.canvasDraw,n=t.clip,r=t.svgDraw;if(void 0!==e||void 0===r)return null;var o=this.context.chartId,i=n?{clipPath:"url(#chart-area-clip".concat(void 0!==o?"-"+o:"",")")}:void 0;return c.createElement("g",{style:i},r(this.getMoreProps()))}}]),n}(c.Component);q.defaultProps={svgDraw:S(null),draw:[],canvasToDraw:function(t){return t.mouseCoord},clip:!0,edgeClip:!1,selected:!1,disablePan:!1,enableDragOnHover:!1},q.contextTypes={width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]),getCanvasContexts:b.func,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,plotData:b.array.isRequired,fullData:b.array.isRequired,chartConfig:b.oneOfType([b.array,b.object]).isRequired,morePropsDecorator:b.func,generateSubscriptionId:b.func,getMutableState:b.func.isRequired,amIOnTop:b.func.isRequired,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired,setCursorClass:b.func.isRequired};var H=function(t){return t.axes},Z=function(t){return t.mouseCoord},Y=["drag","dragend"],B=function(t){p(n,t);var e=y(n);function n(t,r){var o;return u(this,n),(o=e.call(this,t,r)).preCanvasDraw=o.preCanvasDraw.bind(g(o)),o.postCanvasDraw=o.postCanvasDraw.bind(g(o)),o.shouldTypeProceed=o.shouldTypeProceed.bind(g(o)),o.preEvaluate=o.preEvaluate.bind(g(o)),o.updateMoreProps=o.updateMoreProps.bind(g(o)),o}return f(n,[{key:"preCanvasDraw",value:function(t,e){w(v(n.prototype),"preCanvasDraw",this).call(this,t,e),t.save();var r=this.context,o=r.margin,i=r.ratio,a=e.chartConfig,s=a.width,c=a.height,u=a.origin,l=.5*i+u[0]+o.left,f=.5*i+u[1]+o.top,h=this.props,p=h.clip,d=h.edgeClip;t.setTransform(1,0,0,1,0,0),t.scale(i,i),d&&(t.beginPath(),t.rect(-1,f-10,s+o.left+o.right+1,c+20),t.clip()),t.translate(l,f),p&&(t.beginPath(),t.rect(-1,-1,s+1,c+1),t.clip())}},{key:"postCanvasDraw",value:function(t,e){w(v(n.prototype),"postCanvasDraw",this).call(this,t,e),t.restore()}},{key:"updateMoreProps",value:function(t){w(v(n.prototype),"updateMoreProps",this).call(this,t);var e=t.chartConfig;if(e&&Array.isArray(e)){var o=this.context.chartId,i=e.find((function(t){return t.id===o}));this.moreProps.chartConfig=i}if(I(this.moreProps.chartConfig)){var a=this.moreProps.chartConfig,s=(0,r.Z)(a.origin,2),c=s[0],u=s[1];if(I(t.mouseXY)){var l=(0,r.Z)(t.mouseXY,2),f=l[0],h=l[1];this.moreProps.mouseXY=[f-c,h-u]}if(I(t.startPos)){var p=(0,r.Z)(t.startPos,2),d=p[0],g=p[1];this.moreProps.startPos=[d-c,g-u]}}}},{key:"preEvaluate",value:function(){}},{key:"shouldTypeProceed",value:function(t,e){return!("mousemove"!==t&&"click"!==t||!this.props.disablePan)||(-1!==Y.indexOf(t)||!I(e)||!I(e.currentCharts)||e.currentCharts.indexOf(this.context.chartId)>-1)}}]),n}(q);B.defaultProps=q.defaultProps,B.contextTypes={width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]),getCanvasContexts:b.func,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,plotData:b.array.isRequired,fullData:b.array.isRequired,chartConfig:b.oneOfType([b.array,b.object]).isRequired,morePropsDecorator:b.func,generateSubscriptionId:b.func,getMutableState:b.func.isRequired,amIOnTop:b.func.isRequired,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired,setCursorClass:b.func.isRequired,canvasOriginX:b.number,canvasOriginY:b.number,ratio:b.number.isRequired};var U=function(t){var e=V(t).split(",");return 1===e.length?[]:e.map((function(t){return Number(t)}))},V=function(t){switch(t){default:case"Solid":return"none";case"ShortDash":return"6, 2";case"ShortDash2":return"6, 3";case"ShortDot":return"2, 2";case"ShortDashDot":return"6, 2, 2, 2";case"ShortDashDotDot":return"6, 2, 2, 2, 2, 2";case"Dot":return"2, 6";case"Dash":return"4, 6";case"LongDash":return"16, 6";case"DashDot":return"8, 6, 2, 6";case"LongDashDot":return"16, 6, 2, 6";case"LongDashDotDot":return"16, 6, 2, 6, 2, 6"}};function $(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function G(t){if(!(o=t.length))return[];for(var e=-1,n=$(t,K),r=new Array(n);++e{}};function Q(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function nt(t,e){for(var n,r=0,o=t.length;r0)for(var n,r,o=new Array(n),i=0;i=0&&e._call.call(null,t),e=e._next;--st}()}finally{st=0,function(){var t,e,n=ot,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ot=e);it=t,wt(r)}(),ft=0}}function xt(){var t=pt.now(),e=t-lt;e>1e3&&(ht-=e,lt=t)}function wt(t){st||(ct&&(ct=clearTimeout(ct)),t-ft>24?(t<1/0&&(ct=setTimeout(bt,t-pt.now()-ht)),ut&&(ut=clearInterval(ut))):(ut||(lt=pt.now(),ut=setInterval(xt,1e3)),st=1,dt(bt)))}mt.prototype=yt.prototype={constructor:mt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?vt():+n)+(null==e?0:+e),this._next||it===this||(it?it._next=this:ot=this,it=this),this._call=t,this._time=n,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};const _t=4294967296;var Pt=Math.PI*(3-Math.sqrt(5));function St(t){var e,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,a=.6,s=new Map,c=yt(f),u=at("tick","end"),l=function(){let t=1;return()=>(t=(1664525*t+1013904223)%_t)/_t}();function f(){h(),u.call("tick",e),n1?(null==n?s.delete(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var o,i,a,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}}function kt(t){return function(){return t}}function Ct(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var o,i,a,s,c,u,l,f,h,p=t._root,d={data:r},v=t._x0,g=t._y0,m=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((u=e>=(i=(v+m)/2))?v=i:m=i,(l=n>=(a=(g+y)/2))?g=a:y=a,o=p,!(p=p[f=l<<1|u]))return o[f]=d,t;if(s=+t._x.call(null,p.data),c=+t._y.call(null,p.data),e===s&&n===c)return d.next=p,o?o[f]=d:t._root=d,t;do{o=o?o[f]=new Array(4):t._root=new Array(4),(u=e>=(i=(v+m)/2))?v=i:m=i,(l=n>=(a=(g+y)/2))?g=a:y=a}while((f=l<<1|u)===(h=(c>=a)<<1|s>=i));return o[h]=p,o[f]=d,t}function Mt(t,e,n,r,o){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=o}function Dt(t){return t[0]}function Ot(t){return t[1]}function At(t,e,n){var r=new Et(null==e?Dt:e,null==n?Ot:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Et(t,e,n,r,o,i){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function Tt(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Nt=At.prototype=Et.prototype;function jt(t){return 1e-6*(t()-.5)}function Rt(t){return t.x+t.vx}function It(t){return t.y+t.vy}function zt(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ft(t,e){if(t=zt(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function Wt(){}function Lt(t){return null==t?Wt:function(){return this.querySelector(t)}}function Xt(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function qt(){return[]}function Ht(t){return function(e){return e.matches(t)}}Nt.copy=function(){var t,e,n=new Et(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Tt(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var o=0;o<4;++o)(e=r.source[o])&&(e.length?t.push({source:e,target:r.target[o]=new Array(4)}):r.target[o]=Tt(e));return n},Nt.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Ct(this.cover(e,n),e,n,t)},Nt.addAll=function(t){var e,n,r,o,i=t.length,a=new Array(i),s=new Array(i),c=1/0,u=1/0,l=-1/0,f=-1/0;for(n=0;nl&&(l=r),of&&(f=o));if(c>l||u>f)return this;for(this.cover(c,u).cover(l,f),n=0;nt||t>=o||r>e||e>=i;)switch(s=(eh||(i=c.y0)>p||(a=c.x1)=m)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-u],d[d.length-1-u]=c)}else{var y=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),x=y*y+b*b;if(x=(s=(d+g)/2))?d=s:g=s,(l=a>=(c=(v+m)/2))?v=c:m=c,e=p,!(p=p[f=l<<1|u]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):e?(o?e[f]=o:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=o,this)},Nt.removeAll=function(t){for(var e=0,n=t.length;ee?1:t>=e?0:NaN}$t.prototype={constructor:$t,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ee="http://www.w3.org/1999/xhtml",ne={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function re(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ne.hasOwnProperty(e)?{space:ne[e],local:t}:t}function oe(t){return function(){this.removeAttribute(t)}}function ie(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function se(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ce(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ue(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function le(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fe(t){return function(){this.style.removeProperty(t)}}function he(t,e,n){return function(){this.style.setProperty(t,e,n)}}function pe(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function de(t,e){return t.style.getPropertyValue(e)||le(t).getComputedStyle(t,null).getPropertyValue(e)}function ve(t){return function(){delete this[t]}}function ge(t,e){return function(){this[t]=e}}function me(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ye(t){return t.trim().split(/^|\s+/)}function be(t){return t.classList||new xe(t)}function xe(t){this._node=t,this._names=ye(t.getAttribute("class")||"")}function we(t,e){for(var n=be(t),r=-1,o=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function qe(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ue=[null];function Ve(t,e){this._groups=t,this._parents=e}function $e(){return new Ve([[document.documentElement]],Ue)}Ve.prototype=$e.prototype={constructor:Ve,select:function(t){"function"!==typeof t&&(t=Lt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o=w&&(w=x+1);!(b=g[w])&&++w=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=te);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==e?fe:"function"===typeof e?pe:he)(t,e,null==n?"":n)):de(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?ve:"function"===typeof e?me:ge)(t,e)):this.node()[t]},classed:function(t,e){var n=ye(t+"");if(arguments.length<2){for(var r=be(this.node()),o=-1,i=n.length;++o=o&&(++n,r+=o);else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}(c.range());if(void 0===l)return;var f=c.range().map((function(t){return a?t-P(t-l)*u:t+P(t-l)*u})),h=f.map(c.invert);if(P(R(c.range())-j(c.range()))===P(R(f)-j(f))){var p=r.props.axisZoomCallback;void 0!==p&&p(h)}}}},r.handleDragStartTouch=function(t){var e=r.ref.current;if(null!==e){r.dragHappened=!1;var n=r.props,o=(0,n.getScale)((0,n.getMoreProps)());if(1===t.touches.length&&void 0!==o.invert){Ge(k(e)).on(A,r.handleDrag).on(E,r.handleDragEnd);var i=F(T(t.touches[0]),t);r.setState({startPosition:{startScale:o,startXY:i}})}}},r.handleDragStartMouse=function(t){t.preventDefault();var e=r.ref.current;if(null!==e){r.dragHappened=!1;var n=r.props,o=(0,n.getScale)((0,n.getMoreProps)());if(void 0!==o.invert){Ge(k(e)).on(D,r.handleDrag,!1).on(O,r.handleDragEnd,!1);var i=W(t);r.setState({startPosition:{startXY:i,startScale:o}})}}},r.handleRightClick=function(t){t.stopPropagation(),t.preventDefault();var e=r.ref.current;if(null!==e){var n=r.props.onContextMenu;if(void 0!==n){var o=W(t,e.getBoundingClientRect());Ge(k(e)).on(D,null).on(O,null),r.setState({startPosition:null}),n(t,o)}}},r.state={startPosition:null},r}return f(n,[{key:"render",value:function(){var t=this.props,e=t.bg,n=t.className,r=t.zoomCursorClassName,o=null!==this.state.startPosition?r:"react-financial-charts-default-cursor";return c.createElement("rect",{className:"react-financial-charts-enable-interaction ".concat(o," ").concat(n),ref:this.ref,x:e.x,y:e.y,opacity:0,height:e.h,width:e.w,onContextMenu:this.handleRightClick,onMouseDown:this.handleDragStartMouse,onTouchStart:this.handleDragStartTouch})}}]),n}(c.Component),Je=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ou+d||il+d||ac.index){var v=u-s.x-s.vx,g=l-s.y-s.vy,m=v*v+g*g;mt.r&&(t.r=t[e].r)}function c(){if(e){var r,o,i=e.length;for(n=new Array(i),r=0;r.01?Object.assign(Object.assign({},e),{x2:n.x,labelX:n.x}):e}))}}else O=n.map((function(t){var n=Math.round(e(t));return{value:t,x1:0,y1:n,x2:j*a,y2:n,labelX:j*R,labelY:n}})),A=".32em",E=.32*d,T=j<0?"end":"start";return Object.assign({orient:o,ticks:O,scale:e,tickStrokeStyle:w,tickLabelFill:l||w,tickStrokeWidth:f,tickStrokeDasharray:h,dy:A,canvas_dy:E,textAnchor:T,fontSize:d,fontFamily:v,fontWeight:g,format:N,showTickLabel:y},S)},en=function(t,e,n){var r=e.orient,o=e.outerTickSize,i=e.strokeStyle,a=e.strokeWidth,s="top"===r||"left"===r?-1:1,c="bottom"===r||"top"===r;t.lineWidth=a,t.strokeStyle=i,t.beginPath();var u=j(n),l=R(n),f=s*o;c?(t.moveTo(u,f),t.lineTo(u,0),t.lineTo(l,0),t.lineTo(l,f)):(t.moveTo(f,u),t.lineTo(0,u),t.lineTo(0,l),t.lineTo(f,l)),t.stroke()},nn=function(t,e){var n=e.ticks,r=e.tickStrokeStyle;void 0!==r&&(t.strokeStyle=r,t.fillStyle=r),n.forEach((function(n){on(t,n,e)}))},rn=function(t,e,n,r){var o=n.orient,i=n.gridLinesStrokeWidth,a=n.gridLinesStrokeStyle,s=n.gridLinesStrokeDasharray,c=r.chartConfig,u=c.height,l=c.width;void 0!==a&&(t.strokeStyle=a),t.beginPath();var f="top"===o||"left"===o?1:-1;switch(o){case"top":case"bottom":t.moveTo(e.x1,0),t.lineTo(e.x2,f*u);break;default:t.moveTo(0,e.y1),t.lineTo(f*l,e.y2)}t.lineWidth=i;var h=U(s);t.setLineDash(h),t.stroke()},on=function(t,e,n){var r=n.tickStrokeWidth,o=n.tickStrokeDasharray;t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=r;var i=U(o);t.setLineDash(i),t.stroke()},an=function(t,e,n){var r=n.canvas_dy,o=(0,n.format)(e.value);t.beginPath(),t.fillText(o,e.labelX,e.labelY+r)},sn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o0&&"right"===c.orient?(v-=f,t.moveTo(v,g+m),t.lineTo(v+f,g),t.lineTo(v+h+f,g),t.lineTo(v+h+f,g+p),t.lineTo(v+f,g+p),t.closePath()):f>0&&"left"===c.orient?(t.moveTo(v,g),t.lineTo(v+h,g),t.lineTo(v+h+f,g+m),t.lineTo(v+h,g+p),t.lineTo(v,g+p),t.closePath()):d?vn(t,v-.5,g-.5,h,p,3):t.rect(v-.5,g,h,p),t.fill(),void 0!==c.coordinateBase.stroke&&t.stroke(),void 0!==c.coordinate&&(t.fillStyle=c.coordinate.textFill,t.textAlign="middle"===c.coordinate.textAnchor?"center":c.coordinate.textAnchor,t.fillText(c.coordinate.displayCoordinate,c.coordinate.edgeXText,c.coordinate.edgeYText))}}},vn=function(t,e,n,r,o,i){t.beginPath(),t.moveTo(e+i,n),t.lineTo(e+r-i,n),t.quadraticCurveTo(e+r,n,e+r,n+i),t.lineTo(e+r,n+o-i),t.quadraticCurveTo(e+r,n+o,e+r-i,n+o),t.lineTo(e+i,n+o),t.quadraticCurveTo(e,n+o,e,n+o-i),t.lineTo(e,n+i),t.quadraticCurveTo(e,n,e+i,n),t.closePath()},gn=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).drawOnCanvas=function(e,n){var r=t.helper(t.props,n);null!==r&&dn(e,r)},t.helper=function(t,e){var n=e.show,r=e.currentItem,o=e.chartConfig.height;if(z(r))return null;var i=t.customX,a=t.orient,s=t.at,c=t.rectRadius,u=t.rectWidth,l=t.rectHeight,f=t.stroke,h=t.strokeOpacity,p=t.strokeWidth,d=t.fill,v=t.opacity,g=t.fitToText,m=t.fontFamily,y=t.fontSize,b=t.textFill,x="bottom"===s?o:0,w=i(t,e),_=w.x;return{coordinate:w.coordinate,fitToText:g,show:n,type:"vertical",orient:a,edgeAt:x,hideLine:!0,fill:d,opacity:v,fontFamily:m,fontSize:y,textFill:b,stroke:f,strokeOpacity:h,strokeWidth:p,rectWidth:u,rectHeight:l,rectRadius:c,arrowWidth:0,x1:_,x2:_,y1:0,y2:o}},t}return f(n,[{key:"render",value:function(){return c.createElement(B,{clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:Z,drawOn:["mousemove","pan","drag"]})}}]),n}(c.Component);function mn(t,e){let n,r;if(void 0===e)for(const o of t)null!=o&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r=i&&(n=r=i):(n>i&&(n=i),r=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n=o)&&(n=o)}return n}gn.defaultProps={at:"bottom",customX:function(t,e){var n=e.xScale,r=e.xAccessor,o=e.currentItem,i=e.mouseXY,a=t.snapX,s=a?n(r(o)):i[0],c=e.displayXAccessor,u=t.displayFormat;return{x:s,coordinate:u(a?c(o):n.invert(s))}},fill:"#4C525E",fitToText:!0,fontFamily:"-apple-system, system-ui, Roboto, 'Helvetica Neue', Ubuntu, sans-serif",fontSize:13,opacity:1,orient:"bottom",rectWidth:80,rectHeight:20,snapX:!0,strokeOpacity:1,strokeWidth:1,textFill:"#FFFFFF",yAxisPad:0};var bn=function(t,e){if(t===e)return!0;if(!fn(t,Object)||!fn(e,Object))return!1;for(var n=Object.keys(t),r=n.length,o=0;o=0?(i>=_n?10:i>=Pn?5:i>=Sn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_n?10:i>=Pn?5:i>=Sn?2:1)}function Cn(t,e){return te?1:t>=e?0:NaN}function Mn(t){let e=t,n=t;function r(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)<0?r=i+1:o=i}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Cn(t(e),n)}(t)),{left:r,center:function(t,n,o,i){null==o&&(o=0),null==i&&(i=t.length);const a=r(t,n,o,i-1);return a>o&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)>0?o=i:r=i+1}return r}}}const Dn=Mn(Cn),On=Dn.right;Dn.left,Mn((function(t){return null===t?NaN:+t})).center;var An=On;function En(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Tn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nn(){}var jn=.7,Rn=1/jn,In="\\s*([+-]?\\d+)\\s*",zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wn=/^#([0-9a-f]{3,8})$/,Ln=new RegExp("^rgb\\("+[In,In,In]+"\\)$"),Xn=new RegExp("^rgb\\("+[Fn,Fn,Fn]+"\\)$"),qn=new RegExp("^rgba\\("+[In,In,In,zn]+"\\)$"),Hn=new RegExp("^rgba\\("+[Fn,Fn,Fn,zn]+"\\)$"),Zn=new RegExp("^hsl\\("+[zn,Fn,Fn]+"\\)$"),Yn=new RegExp("^hsla\\("+[zn,Fn,Fn,zn]+"\\)$"),Bn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Un(){return this.rgb().formatHex()}function Vn(){return this.rgb().formatRgb()}function $n(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Wn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Gn(e):3===n?new tr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Kn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Kn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ln.exec(t))?new tr(e[1],e[2],e[3],1):(e=Xn.exec(t))?new tr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qn.exec(t))?Kn(e[1],e[2],e[3],e[4]):(e=Hn.exec(t))?Kn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Zn.exec(t))?or(e[1],e[2]/100,e[3]/100,1):(e=Yn.exec(t))?or(e[1],e[2]/100,e[3]/100,e[4]):Bn.hasOwnProperty(t)?Gn(Bn[t]):"transparent"===t?new tr(NaN,NaN,NaN,0):null}function Gn(t){return new tr(t>>16&255,t>>8&255,255&t,1)}function Kn(t,e,n,r){return r<=0&&(t=e=n=NaN),new tr(t,e,n,r)}function Jn(t){return t instanceof Nn||(t=$n(t)),t?new tr((t=t.rgb()).r,t.g,t.b,t.opacity):new tr}function Qn(t,e,n,r){return 1===arguments.length?Jn(t):new tr(t,e,n,null==r?1:r)}function tr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function er(){return"#"+rr(this.r)+rr(this.g)+rr(this.b)}function nr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function rr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function or(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ar(t,e,n,r)}function ir(t){if(t instanceof ar)return new ar(t.h,t.s,t.l,t.opacity);if(t instanceof Nn||(t=$n(t)),!t)return new ar;if(t instanceof ar)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=e===i?(n-r)/s+6*(n0&&c<1?0:a,new ar(a,s,c,t.opacity)}function ar(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cr(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}En(Nn,$n,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Un,formatHex:Un,formatHsl:function(){return ir(this).formatHsl()},formatRgb:Vn,toString:Vn}),En(tr,Qn,Tn(Nn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new tr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?jn:Math.pow(jn,t),new tr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:er,formatHex:er,formatRgb:nr,toString:nr})),En(ar,(function(t,e,n,r){return 1===arguments.length?ir(t):new ar(t,e,n,null==r?1:r)}),Tn(Nn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new ar(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?jn:Math.pow(jn,t),new ar(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new tr(sr(t>=240?t-240:t+120,o,r),sr(t,o,r),sr(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ur=t=>()=>t;function lr(t,e){return function(n){return t+n*e}}function fr(t){return 1===(t=+t)?hr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ur(isNaN(e)?n:e)}}function hr(t,e){var n=e-t;return n?lr(t,n):ur(isNaN(t)?e:t)}var pr=function t(e){var n=fr(e);function r(t,e){var r=n((t=Qn(t)).r,(e=Qn(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=hr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function dr(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,s=ri&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:mr(n,r)})),i=xr.lastIndex;return ie&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Ar:Or,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),s,c)))(t(u(e)))}return f.invert=function(n){return u(e((i||(i=r(s,a.map(t),mr)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,kr),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),c=Sr,l()},f.clamp=function(t){return arguments.length?(u=!!t||Mr,l()):u!==Mr},f.interpolate=function(t){return arguments.length?(c=t,l()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Nr(){return Tr()(Mr,Mr)}function jr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Rr,Ir=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zr(t){if(!(e=Ir.exec(t)))throw new Error("invalid format: "+t);var e;return new Fr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Fr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Wr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Lr(t){return(t=Wr(Math.abs(t)))?t[1]:NaN}function Xr(t,e){var n=Wr(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}zr.prototype=Fr.prototype,Fr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Xr(100*t,e),r:Xr,s:function(t,e){var n=Wr(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Rr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Wr(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Hr(t){return t}var Zr,Yr,Br,Ur=Array.prototype.map,Vr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function $r(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Hr:(e=Ur.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(t.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Hr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ur.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=zr(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):qr[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?o:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?i:/[%p]/.test(y)?c:"",w=qr[y],_=/[defgprs%]/.test(y);function P(t){var o,i,c,h=b,P=x;if("c"===y)P=w(t)+P,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),h=(S?"("===f?f:u:"-"===f||"("===f?"":f)+h,P=("s"===y?Vr[8+Rr/3]:"")+P+(S&&"("===f?")":""),_)for(o=-1,i=t.length;++o(c=t.charCodeAt(o))||c>57){P=(46===c?a+t.slice(o+1):t.slice(o))+P,t=t.slice(0,o);break}}v&&!p&&(t=r(t,1/0));var k=h.length+t.length+P.length,C=k>1)+h+t+P+C.slice(k);break;default:t=C+h+t+P}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),P.toString=function(){return t+""},P}return{format:f,formatPrefix:function(t,e){var n=f(((t=zr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Lr(e)/3))),o=Math.pow(10,-r),i=Vr[8+r/3];return function(t){return n(o*t)+i}}}}function Gr(t,e,n,r){var o,i=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=_n?o*=10:i>=Pn?o*=5:i>=Sn&&(o*=2),e0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,i=new Array(o=r-n+1);++se&&--r,i=new Array(o=r-n+1);++s0;){if((o=kn(c,u,n))===r)return i[a]=c,i[s]=u,e(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return t},t}function Jr(){var t=Nr();return t.copy=function(){return Er(t,Jr())},jr.apply(t,arguments),Kr(t)}Zr=$r({thousands:",",grouping:[3],currency:["$",""]}),Yr=Zr.format,Br=Zr.formatPrefix;var Qr=function(t){p(n,t);var e=y(n);function n(){return u(this,n),e.apply(this,arguments)}return f(n,[{key:"shouldComponentUpdate",value:function(t,e,n){return!bn(this.props,t)||!bn(this.state,e)||!bn(this.context,n)}}]),n}(c.Component),to=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).listener=function(e,n,r,o){var i=t.props,a=i.id,s=i.onContextMenu,c=i.onDoubleClick;switch(e){case"contextmenu":if(void 0===s)return;n.currentCharts.indexOf(a)>-1&&s(o,n);break;case"dblclick":if(void 0===c)return;n.currentCharts.indexOf(a)>-1&&c(o,n)}},t}return f(n,[{key:"componentDidMount",value:function(){var t=this.props.id;(0,this.context.subscribe)("chart_".concat(t),{listener:this.listener})}},{key:"componentWillUnmount",value:function(){var t=this.props.id;(0,this.context.unsubscribe)("chart_".concat(t))}},{key:"getChildContext",value:function(){var t=this.props.id,e=this.context.chartConfig.find((function(e){return e.id===t}));return{chartId:t,chartConfig:e}}},{key:"render",value:function(){var t=this,e=this.context.chartConfig.find((function(e){return e.id===t.props.id})).origin,n=(0,r.Z)(e,2),o=n[0],i=n[1];return c.createElement("g",{transform:"translate(".concat(o,", ").concat(i,")")},this.props.children)}}]),n}(Qr);to.defaultProps={flipYScale:!1,id:0,origin:[0,0],padding:0,yPan:!0,yPanEnabled:!1,yScale:Jr()},to.contextTypes={chartConfig:b.array,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired},to.childContextTypes={chartConfig:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]).isRequired};var eo=function(t,e,n){for(var r=0,o=t.length-1;o-r>1;){var i=Math.round((r+o)/2);n(t[i])<=e?r=i:o=i}var a=n(t[r]),s=n(t[o]);return(null===a||void 0===a?void 0:a.valueOf())===(null===e||void 0===e?void 0:e.valueOf())&&(o=r),(null===s||void 0===s?void 0:s.valueOf())===(null===e||void 0===e?void 0:e.valueOf())&&(r=o),ae&&s>e&&(o=r),{left:r,right:o}};function no(t,e){var n=t.width,r=t.height;return{availableHeight:r,width:n,height:e.height||r}}function ro(t){return function(e){var n=t(e);return function(t){return I(t)&&"object"===typeof t&&!Array.isArray(t)}(n)?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=Object.keys(t),r=new Array(n.length);return n.forEach((function(n,o){r[o]=e(t[n],n,t)})),r}(n):n}}function oo(t){if(Array.isArray(t)&&2===t.length){var e=(0,r.Z)(t,2),n=e[0],o=e[1];return"number"===typeof n&&"number"===typeof o}return!1}var io=function(t){return void 0!==t&&void 0!==t.id};function ao(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return c.Children.map(e,(function(e){if(void 0!==e&&null!==e&&io(e.props)){var o=Object.assign(Object.assign({},to.defaultProps),e.props),i=o.id,a=o.origin,s=o.padding,c=o.yExtents,u=o.yScale,l=o.flipYScale,f=o.yExtentsCalculator,h=u.copy(),p=no(t,o),d=p.width,v=p.height,g=p.availableHeight,m=o.yPan,y=o.yPanEnabled,b=I(c)?(Array.isArray(c)?c:[c]).map(S):void 0,x=n.find((function(t){return t.id===i}));if(oo(c))if(I(x)&&x.yPan&&x.yPanEnabled&&m&&y&&bn(x.originalYExtentsProp,c))h.domain(x.yScale.domain());else{var w=(0,r.Z)(c,2),_=w[0],P=w[1];h.domain([_,P])}else I(x)&&x.yPanEnabled&&(oo(x.originalYExtentsProp)||(h.domain(x.yScale.domain()),y=!0));return{id:i,origin:S(a)(d,g),padding:s,originalYExtentsProp:c,yExtents:b,yExtentsCalculator:f,flipYScale:l,yScale:h,yPan:m,yPanEnabled:y,width:d,height:v}}})).filter((function(t){return void 0!==t}))}function so(t,e){return t.filter((function(t){var n=t.origin[1],r=n+t.height;return e[1]>n&&e[1]-1,v=l&&p?d?r:i:n,g=function(t,e,n,r){if(t.rangeRoundPoints||z(t.invert)){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints&&t.rangeRoundPoints(r?[0,e]:[e,0],n),t.rangeRound&&t.range(r?[0,e]:[e,0]).padding(n)}else{var o=isNaN(n)?n:{top:n,bottom:n},i=o.top,a=o.bottom;t.range(r?[i,e-a]:[e-a,i])}return t}(u.copy().domain(v),c,s,f);return Object.assign(Object.assign({},t),{yScale:g,realYDomain:n})}));return f(t,l)}function uo(t,e,n,r){var o;if(t.invert)o=function(t,e,n){var r=eo(t,e,n),o=r.left,i=r.right;if(o===i)return t[o];var a=n(t[o]),s=n(t[i]);return Math.abs(a.valueOf()-e.valueOf())Ft(t,e)))}var fo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);oMath.abs(t.deltaX)&&Math.abs(t.deltaY)>0,u=W(t);if(t.preventDefault(),i&&o.focus&&c&&!s){var l=t.deltaY>0?1:-1;void 0!==a&&a(l,u,t)}else if(o.focus){if(o.shouldPan()&&void 0!==o.state.panStart){var f=o.state.panStart,h=f.panStartXScale,p=f.chartsToPan;o.lastNewPos=u,o.panHappened=!0,void 0===o.dx&&(o.dx=0),void 0===o.dy&&(o.dy=0),o.dx-=t.deltaX,o.dy+=t.deltaY;var d={dx:o.dx,dy:o.dy};void 0!==r&&r(u,h,d,p,t)}else{var v=o.props,g=v.xScale,m=so(v.chartConfig,u);o.dx=0,o.dy=0,o.setState({panInProgress:!0,panStart:{panStartXScale:g,panOrigin:u,chartsToPan:m}})}o.queuePanEnd(t)}}},o.handleMouseMove=function(t){var e=o.props,n=e.onMouseMove,r=e.mouseMove;void 0!==n&&(o.mouseInteraction&&r&&!o.state.panInProgress&&n(Ft(t,o.ref.current),"mouse",t))},o.handleClick=function(t){var e=W(t),n=o.props,r=n.onClick,i=n.onDoubleClick;o.panHappened||o.dragHappened||(o.clicked&&void 0!==i?(i(e,t),o.clicked=!1):void 0!==r&&(r(e,t),o.clicked=!0,setTimeout((function(){o.clicked&&(o.clicked=!1)}),400)))},o.handleRightClick=function(t){t.stopPropagation(),t.preventDefault();var e=o.props,n=e.onContextMenu,i=e.onPanEnd,a=W(t,o.ref.current.getBoundingClientRect());if(void 0!==o.state.panStart){var s=o.state.panStart,c=s.panStartXScale,u=(0,r.Z)(s.panOrigin,2),l=u[0],f=u[1],h=s.chartsToPan;o.panHappened&&void 0!==i&&i(a,c,{dx:l,dy:f},h,t),Ge(k(o.ref.current)).on(D,null).on(O,null),o.setState({panInProgress:!1,panStart:void 0})}void 0!==n&&n(a,t)},o.handleDrag=function(t){var e=o.props.onDrag;if(void 0!==e){o.dragHappened=!0;var n=o.state.dragStartPosition;if(void 0!==n)e({startPos:n,mouseXY:Ft(t,o.ref.current)},t)}},o.handleDragEnd=function(t){var e=Ft(t,o.ref.current);if(Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null),o.dragHappened){var n=o.props.onDragComplete;void 0!==n&&n({mouseXY:e},t)}o.setState({dragInProgress:!1}),o.mouseInteraction=!0},o.canPan=function(){var t=o.props.getAllPanConditions,e=o.props.pan,n=t().reduce((function(t,e){return{draggable:t.draggable||e.draggable,panEnabled:t.panEnabled&&e.panEnabled}}),{draggable:!1,panEnabled:e});return{panEnabled:n.panEnabled,somethingSelected:n.draggable}},o.handleMouseDown=function(t){if(0===t.button){var e=o.props,n=e.xScale,r=e.chartConfig,i=e.onMouseDown;if(o.panHappened=!1,o.dragHappened=!1,o.focus=!0,!o.state.panInProgress&&o.mouseInteraction){var a=W(t),s=so(r,a),c=o.canPan(),u=c.panEnabled,l=c.somethingSelected,f=u&&!l;if(f)o.setState({panInProgress:f,panStart:{panStartXScale:n,panOrigin:a,chartsToPan:s}}),Ge(k(o.ref.current)).on(D,o.handlePan).on(O,o.handlePanEnd);else if(l){o.setState({panInProgress:!1,dragInProgress:!0,panStart:void 0,dragStartPosition:a});var h=o.props.onDragStart;void 0!==h&&h({startPos:a},t),Ge(k(o.ref.current)).on(D,o.handleDrag).on(O,o.handleDragEnd)}void 0!==i&&i(a,s,t)}t.preventDefault()}},o.shouldPan=function(){var t=o.props,e=t.pan,n=t.onPan;return e&&n&&void 0!==o.state.panStart},o.handlePan=function(t){if(o.shouldPan()&&void 0!==o.state.panStart){o.panHappened=!0;var e,n,r,i=o.state.panStart,a=i.panStartXScale,s=i.panOrigin,c=i.chartsToPan;o.mouseInteraction?(r=Ft(t,o.ref.current),o.lastNewPos=r,e=r[0]-s[0],n=r[1]-s[1]):(r=lo(t,o.ref.current)[0],o.lastNewPos=r,e=s[0]-r[0],n=s[1]-r[1]),o.dx=e,o.dy=n;var u=o.props.onPan;void 0!==u&&u(r,a,{dx:e,dy:n},c,t)}},o.handlePanEnd=function(t){var e=o.props,n=e.pan,r=e.onPanEnd;if(void 0!==o.state.panStart){var i=o.state.panStart,a=i.panStartXScale,s=i.chartsToPan;if(Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null).on(A,null).on(E,null),o.panHappened&&n&&r){var c=g(o),u=c.dx,l=void 0===u?0:u,f=c.dy,h=void 0===f?0:f;delete o.dx,delete o.dy,void 0!==o.lastNewPos&&r(o.lastNewPos,a,{dx:l,dy:h},s,t)}o.setState({panInProgress:!1,panStart:void 0})}},o.handleTouchMove=function(t){var e=o.props.onMouseMove;void 0!==e&&e(F(T(t.touches[0]),t),"touch",t)},o.handleTouchStart=function(t){o.mouseInteraction=!1;var e=o.props,n=e.pan,i=e.chartConfig,a=e.onMouseMove,s=e.xScale,c=e.onPanEnd;if(1===t.touches.length){o.panHappened=!1;var u=F(T(t.touches[0]),t);if(void 0!==a&&a(u,"touch",t),n){var l=so(i,u);o.setState({panInProgress:!0,panStart:{panStartXScale:s,panOrigin:u,chartsToPan:l}}),Ge(k(o.ref.current)).on(A,o.handlePan,!1).on(E,o.handlePanEnd,!1)}}else if(2===t.touches.length){var f=o.state,h=f.panInProgress,p=f.panStart;if(h&&n&&c&&void 0!==p){var d=p.panStartXScale,v=(0,r.Z)(p.panOrigin,2),g=v[0],m=v[1],y=p.chartsToPan;Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null).on(A,o.handlePinchZoom,!1).on(E,o.handlePinchZoomEnd,!1);var b=F(T(t.touches[0]),t),x=F(T(t.touches[1]),t);o.panHappened&&n&&c&&void 0!==o.lastNewPos&&c(o.lastNewPos,d,{dx:g,dy:m},y,t),o.setState({panInProgress:!1,pinchZoomStart:{xScale:s,touch1Pos:b,touch2Pos:x,range:s.range(),chartsToPan:y}})}}},o.handlePinchZoom=function(t){var e=o.state.pinchZoomStart;if(void 0!==e){var n=o.props,i=n.xScale,a=n.zoom,s=n.onPinchZoom;if(a&&void 0!==s){var c=(0,r.Z)(lo(o.ref.current),2),u=c[0],l=c[1];e.chartsToPan;s(fo(e,["chartsToPan"]),{touch1Pos:u,touch2Pos:l,xScale:i},t)}}},o.handlePinchZoomEnd=function(t){Ge(k(o.ref.current)).on(A,null).on(E,null);var e=o.state.pinchZoomStart;if(void 0!==e){e.chartsToPan;var n=fo(e,["chartsToPan"]),r=o.props,i=r.zoom,a=r.onPinchZoomEnd;i&&a&&a(n,t),o.setState({pinchZoomStart:void 0})}},o.setCursorClass=function(t){t!==o.state.cursorOverrideClass&&o.setState({cursorOverrideClass:t})},o.focus=t.focus,o.state={panInProgress:!1},o}return f(n,[{key:"componentDidMount",value:function(){var t=this.props.disableInteraction,e=this.ref.current;null!==e&&(t||(Ge(e).on(C,this.handleEnter).on(M,this.handleLeave),e.addEventListener("wheel",this.handleWheel,{passive:!1})))}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"componentWillUnmount",value:function(){var t=this.props.disableInteraction,e=this.ref.current;null!==e&&(t||(Ge(e).on(C,null).on(M,null),Ge(k(e)).on(D,null),e.removeEventListener("wheel",this.handleWheel,{passive:!1})))}},{key:"queuePanEnd",value:function(t){var e=this;void 0!==this.panEndTimeout&&window.clearTimeout(this.panEndTimeout),this.panEndTimeout=window.setTimeout((function(){e.handlePanEnd(t)}),100)}},{key:"cancelDrag",value:function(){Ge(k(this.ref.current)).on(D,this.mouseInside?this.handleMouseMove:null).on(O,null),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width,r=t.disableInteraction,o=t.useCrossHairStyleCursor,i=r?void 0:void 0!==this.state.cursorOverrideClass?this.state.cursorOverrideClass:o?this.state.panInProgress?"react-financial-charts-grabbing-cursor":"react-financial-charts-crosshair-cursor":void 0,a=r||{onMouseDown:this.handleMouseDown,onClick:this.handleClick,onContextMenu:this.handleRightClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove};return c.createElement("rect",Object.assign({ref:this.ref,className:i,width:n,height:e,style:{opacity:0}},a))}}]),n}(c.Component);ho.defaultProps={mouseMove:!1,zoom:!1,pan:!1,panSpeedMultiplier:1,focus:!1,disableInteraction:!1};var po=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).bgRef=c.createRef(),t.axesRef=c.createRef(),t.mouseRef=c.createRef(),t}return f(n,[{key:"getCanvasContexts",value:function(){var t,e,n,r,o,i;return{bg:null!==(e=null===(t=this.bgRef.current)||void 0===t?void 0:t.getContext("2d"))&&void 0!==e?e:void 0,axes:null!==(r=null===(n=this.axesRef.current)||void 0===n?void 0:n.getContext("2d"))&&void 0!==r?r:void 0,mouseCoord:null!==(i=null===(o=this.mouseRef.current)||void 0===o?void 0:o.getContext("2d"))&&void 0!==i?i:void 0}}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.ratio,r=t.style,o=t.width,i=o*n,a=e*n,s={position:"absolute",width:o,height:e};return c.createElement("div",{style:Object.assign(Object.assign({},r),{position:"absolute"})},c.createElement("canvas",{ref:this.bgRef,width:i,height:a,style:s}),c.createElement("canvas",{ref:this.axesRef,width:i,height:a,style:s}),c.createElement("canvas",{ref:this.mouseRef,width:i,height:a,style:s}))}}]),n}(c.PureComponent);function vo(t,e,n,o){var i=t.lastItem,a=t.lastItemX,s=e(i),c=(0,r.Z)(n.range(),2),u=c[0];return(c[1]-u)/(a.valueOf()-u)*(s.valueOf()-o.valueOf())+o.valueOf()}function go(t,e,n,r){var o=function(t,e){return Math.max(1,Math.ceil(t*e))}(t,r),i=mo(t,n);return e>=o&&e4&&void 0!==arguments[4]?arguments[4]:{},l=u.currentPlotData,f=u.currentDomain,h=u.fallbackStart,p=u.fallbackEnd,d=u.ignoreThresholds,v=void 0!==d&&d;if(t)return{plotData:i,domain:a};var g=N(a),m=R(a),y=a,b=bo(i,g,m,s);1===b.length&&void 0!==h&&(y=[g=h,m=vo(p,s,c,g)],b=bo(i,g,m,s)),"function"===typeof e?y=e(y,[s(N(i)),s(R(i))]):("left"!==e&&"both"!==e&&!0!==e||(y=[yn([g,s(N(i))]),y[1]]),"right"!==e&&"both"!==e&&!0!==e||(y=[y[0],$([m,s(R(i))])])),y!==a&&(b=bo(i,y[0],y[1],s));var x,w,_=y,P=c.copy().domain(_),S=Math.floor(P(s(R(b)))-P(s(N(b))));o&&S<0&&(S*=-1);var k=R(P.range())-N(P.range());if(v&&b.length>1||go(S,b.length,n,r))x=b,w=_;else if(k>mo(S,n)&&I(p)){x=b;var C=vo(p,s,c,N(_));w=[N(_),C]}else x=null!==l&&void 0!==l?l:b.slice(b.length-yo(S,n)),w=null!==f&&void 0!==f?f:[s(N(x)),s(R(x))];return{plotData:x,domain:w}}}}(n||z(e.invert),r,o,i,a)}var wo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o3&&void 0!==arguments[3]?arguments[3]:1;if(t.rangeRoundPoints){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints([0,e.width],n)}else if(t.padding){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.range([0,e.width]),t.padding(n/2)}else{var o=isNaN(n)?n:{left:n,right:n},i=o.left,a=o.right;r>0?t.range([i,e.width-a]):t.range([e.width-a,i])}return t},Oo=function(t){var e=t.touch1Pos,n=t.touch2Pos;return{topLeft:[Math.min(e[0],n[0]),Math.min(e[1],n[1])],bottomRight:[Math.max(e[0],n[0]),Math.max(e[1],n[1])]}},Ao=function(t,e,n){return!isNaN(t(e(N(n))))&&I(t.invert)},Eo=function(t){p(n,t);var e=y(n);function n(t){var r;u(this,n),(r=e.call(this,t)).canvasContainerRef=c.createRef(),r.eventCaptureRef=c.createRef(),r.lastSubscriptionId=0,r.mutableState={},r.panInProgress=!1,r.subscriptions=[],r.getMutableState=function(){return r.mutableState},r.getDataInfo=function(){return Object.assign(Object.assign({},r.state),{fullData:r.fullData})},r.getCanvasContexts=function(){var t;return null===(t=r.canvasContainerRef.current)||void 0===t?void 0:t.getCanvasContexts()},r.generateSubscriptionId=function(){return r.lastSubscriptionId++,r.lastSubscriptionId},r.subscribe=function(t,e){var n=e.getPanConditions,o=void 0===n?S({draggable:!1,panEnabled:!0}):n;r.subscriptions=r.subscriptions.concat(Object.assign(Object.assign({id:t},e),{getPanConditions:o}))},r.unsubscribe=function(t){r.subscriptions=r.subscriptions.filter((function(e){return e.id!==t}))},r.getAllPanConditions=function(){return r.subscriptions.map((function(t){return t.getPanConditions()}))},r.setCursorClass=function(t){var e;null===(e=r.eventCaptureRef.current)||void 0===e||e.setCursorClass(t)},r.amIOnTop=function(t){var e=r.subscriptions.filter((function(t){return t.getPanConditions().draggable}));return e.length>0&&R(e).id===t},r.handleContextMenu=function(t,e){var n=r.state,o=n.xAccessor,i=n.chartConfig,a=n.plotData,s=n.xScale,c=so(i,t),u=uo(s,o,t,a);r.triggerEvent("contextmenu",{mouseXY:t,currentItem:u,currentCharts:c},e)},r.calculateStateForDomain=function(t){var e=r.state,o=e.xAccessor,i=e.displayXAccessor,a=e.xScale,s=e.chartConfig,c=e.plotData,u=r.state.filterData,l=g(r).fullData,f=r.props.postCalculator,h=void 0===f?n.defaultProps.postCalculator:f,p=u(l,t,o,a,{currentPlotData:c,currentDomain:a.domain()}),d=p.plotData,v=p.domain,m=h(d),y=a.copy().domain(v),b=co(s,{plotData:m,xAccessor:o,displayXAccessor:i,fullData:l},y.domain());return{xScale:y,plotData:m,chartConfig:b}},r.pinchZoomHelper=function(t,e){var o=t.xScale,i=r.state,a=i.xScale,s=i.chartConfig,c=i.plotData,u=i.xAccessor,l=i.displayXAccessor,f=i.filterData,h=g(r).fullData,p=r.props.postCalculator,d=void 0===p?n.defaultProps.postCalculator:p,v=Oo(t),m=v.topLeft,y=v.bottomRight,b=Oo(e),x=b.topLeft,w=b.bottomRight,_=o.range()[1],P=Math.round(-(y[0]*x[0]-m[0]*w[0])/(m[0]-y[0])),S=Math.round(_+((_-y[0])*(_-x[0])-(_-m[0])*(_-w[0]))/(_-m[0]-(_-y[0]))),k=f(h,[Math.round(-P*m[0]/(-P+x[0])),Math.round(_-(S-_)*(_-m[0])/(S+(_-x[0])))].map(o.invert),u,o,{currentPlotData:c,currentDomain:a.domain()}),C=k.plotData,M=k.domain,D=d(C),O=a.copy().domain(M),A=e.touch1Pos;return{chartConfig:co(s,{plotData:D,xAccessor:u,displayXAccessor:l,fullData:h},O.domain()),xScale:O,plotData:D,mouseXY:A,currentItem:uo(O,u,A,D)}},r.handlePinchZoom=function(t,e,n){if(!r.waitingForPinchZoomAnimationFrame){r.waitingForPinchZoomAnimationFrame=!0;var o=r.pinchZoomHelper(t,e);r.triggerEvent("pinchzoom",o,n),r.finalPinch=e,requestAnimationFrame((function(){r.clearBothCanvas(),r.draw({trigger:"pinchzoom"}),r.waitingForPinchZoomAnimationFrame=!1}))}},r.handlePinchZoomEnd=function(t,e){var o=r.state.xAccessor,i=void 0===o?n.defaultProps.xAccessor:o;if(r.finalPinch){var a=r.pinchZoomHelper(t,r.finalPinch),s=a.xScale;r.triggerEvent("pinchzoom",a,e),r.finalPinch=void 0,r.clearThreeCanvas();var c=g(r).fullData,u=N(c),l=N(s.domain()),f=i(u),h=R(c),p=R(s.domain()),d=i(h),v=r.props,m=v.onLoadAfter,y=v.onLoadBefore;r.setState(a,(function(){l0?1*f:1/f,b=s.range().map((function(t){return m+(t-m)*y})).map((function(t){return s.invert(t)})),x=r.calculateStateForDomain(b),w=x.xScale,_=x.plotData,P=x.chartConfig,S=uo(w,a,e,_),k=so(P,e);r.clearThreeCanvas();var C=N(d),M=N(w.domain()),D=a(C),O=R(d),A=R(w.domain()),E=a(O);r.mutableState={mouseXY:e,currentItem:S,currentCharts:k},r.triggerEvent("zoom",{xScale:w,plotData:_,chartConfig:P,mouseXY:e,currentCharts:k,currentItem:S,show:!0},o);var T=r.props,j=T.onLoadAfter,I=T.onLoadBefore;r.setState({xScale:w,plotData:_,chartConfig:P},(function(){M=p){var k=(0,r.Z)(e.range(),2),C=k[0],M=k[1],D=(0,r.Z)(S.range(),2),O=D[0],A=(D[1]-O)/(M-C)*(g.valueOf()-v.valueOf()),E=f(s,[w?g.valueOf()-A:v,g],u,S,{fallbackStart:v,fallbackEnd:{lastItem:h,lastItemX:e(p)}});a=E.plotData,S.domain(E.domain)}else if(o&&g=l,i)}else e=Co(t),this.mutableState={};var v=e.fullData,g=wo(e,["fullData"]);this.panInProgress||(this.clearThreeCanvas(),this.setState(g)),this.fullData=v}},{key:"shouldComponentUpdate",value:function(){return!this.panInProgress}},{key:"render",value:function(){var t=this.props,e=t.disableInteraction,r=t.disablePan,o=t.disableZoom,i=t.useCrossHairStyleCursor,a=t.onClick,s=t.onDoubleClick,u=t.height,l=t.width,f=t.margin,h=void 0===f?n.defaultProps.margin:f,p=t.className,d=t.zIndex,v=void 0===d?n.defaultProps.zIndex:d,g=t.defaultFocus,m=t.ratio,y=t.mouseMoveEvent,b=this.state,x=b.plotData,w=b.xScale,_=b.xAccessor,P=b.chartConfig,S=Po(this.props),k=Ao(w,_,x),C=i&&k,M=c.createElement("style",{type:"text/css"},"\n\t.react-financial-charts-grabbing-cursor {\n\t\tpointer-events: all;\n\t\tcursor: -moz-grabbing;\n\t\tcursor: -webkit-grabbing;\n\t\tcursor: grabbing;\n\t}\n\t.react-financial-charts-crosshair-cursor {\n\t\tpointer-events: all;\n\t\tcursor: crosshair;\n\t}\n\t.react-financial-charts-tooltip-hover {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-avoid-interaction {\n\t\tpointer-events: none;\n\t}\n\t.react-financial-charts-enable-interaction {\n\t\tpointer-events: all;\n\t}\n\t.react-financial-charts-tooltip {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-default-cursor {\n\t\tcursor: default;\n\t}\n\t.react-financial-charts-move-cursor {\n\t\tcursor: move;\n\t}\n\t.react-financial-charts-pointer-cursor {\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-ns-resize-cursor {\n\t\tcursor: ns-resize;\n\t}\n\t.react-financial-charts-ew-resize-cursor {\n\t\tcursor: ew-resize;\n\t}");return c.createElement("div",{style:{position:"relative",width:l,height:u},className:p,onClick:a,onDoubleClick:s},c.createElement(po,{ref:this.canvasContainerRef,ratio:m,width:l,height:u,style:{height:u,zIndex:v,width:l}}),c.createElement("svg",{className:p,width:l,height:u,style:{position:"absolute",zIndex:v+5}},M,c.createElement("defs",null,c.createElement("clipPath",{id:"chart-area-clip"},c.createElement("rect",{x:"0",y:"0",width:S.width,height:S.height})),P.map((function(t,e){return c.createElement("clipPath",{key:e,id:"chart-area-clip-".concat(t.id)},c.createElement("rect",{x:"0",y:"0",width:t.width,height:t.height}))}))),c.createElement("g",{transform:"translate(".concat(h.left+.5,", ").concat(h.top+.5,")")},c.createElement(ho,{ref:this.eventCaptureRef,useCrossHairStyleCursor:C,mouseMove:y&&k,zoom:!o&&k,pan:!r&&k,width:S.width,height:S.height,chartConfig:P,xScale:w,xAccessor:_,focus:g,disableInteraction:e,getAllPanConditions:this.getAllPanConditions,onContextMenu:this.handleContextMenu,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onDragStart:this.handleDragStart,onDrag:this.handleDrag,onDragComplete:this.handleDragEnd,onZoom:this.handleZoom,onPinchZoom:this.handlePinchZoom,onPinchZoomEnd:this.handlePinchZoomEnd,onPan:this.handlePan,onPanEnd:this.handlePanEnd}),c.createElement("g",{className:"react-financial-charts-avoid-interaction"},this.props.children))))}}]),n}(c.Component);Eo.defaultProps={clamp:!1,className:"react-financial-charts",defaultFocus:!0,disablePan:!1,disableInteraction:!1,disableZoom:!1,flipXScale:!1,maintainPointsPerPixelOnResize:!0,margin:{top:0,right:40,bottom:40,left:0},minPointsPerPxThreshold:.01,mouseMoveEvent:!0,postCalculator:_,padding:0,pointsPerPxThreshold:2,useCrossHairStyleCursor:!0,xAccessor:_,xExtents:[$,yn],zIndex:1,zoomAnchor:function(t){var e=t.xScale,n=t.xAccessor;return n(uo(e,n,t.mouseXY,t.plotData))},zoomMultiplier:1.1},Eo.childContextTypes={plotData:b.array,fullData:b.array,chartConfig:b.arrayOf(b.shape({id:b.oneOfType([b.number,b.string]).isRequired,origin:b.arrayOf(b.number).isRequired,padding:b.oneOfType([b.number,b.shape({top:b.number,bottom:b.number})]),yExtents:b.arrayOf(b.func),yExtentsProvider:b.func,yScale:b.func.isRequired,mouseCoordinates:b.shape({at:b.string,format:b.func}),width:b.number.isRequired,height:b.number.isRequired})).isRequired,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,ratio:b.number.isRequired,getCanvasContexts:b.func,xAxisZoom:b.func,yAxisZoom:b.func,amIOnTop:b.func,redraw:b.func,subscribe:b.func,unsubscribe:b.func,setCursorClass:b.func,generateSubscriptionId:b.func,getMutableState:b.func};const To=Math.PI,No=2*To,jo=1e-6,Ro=No-jo;function Io(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zo(){return new Io}Io.prototype=zo.prototype={constructor:Io,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-t,c=r-e,u=i-t,l=a-e,f=u*u+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>jo)if(Math.abs(l*s-c*u)>jo&&o){var h=n-i,p=r-a,d=s*s+c*c,v=h*h+p*p,g=Math.sqrt(d),m=Math.sqrt(f),y=o*Math.tan((To-Math.acos((d+f-v)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>jo&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+o+","+o+",0,0,"+ +(l*h>u*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,o,i){t=+t,e=+e,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+a,u=e+s,l=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>jo||Math.abs(this._y1-u)>jo)&&(this._+="L"+c+","+u),n&&(f<0&&(f=f%No+No),f>Ro?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):f>jo&&(this._+="A"+n+","+n+",0,"+ +(f>=To)+","+l+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Fo=zo;Array.prototype.slice;function Wo(t){return function(){return t}}function Lo(t){this._context=t}function Xo(t){return new Lo(t)}function qo(t){return t[0]}function Ho(t){return t[1]}function Zo(t,e){var n=Wo(!0),r=null,o=Xo,i=null;function a(a){var s,c,u,l=(a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}(a)).length,f=!1;for(null==r&&(i=o(u=Fo())),s=0;s<=l;++s)!(s=N-x&&b<=N+x},t}return f(n,[{key:"render",value:function(){var t=this.props,e=t.highlightOnHover,n=t.onClick,r=t.onContextMenu,o=t.onDoubleClick,i=t.onHover,a=t.onUnHover,s=t.strokeDasharray,u=e||i||a?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:Z}:{drawOn:["pan"],canvasToDraw:H},l=U(s);return c.createElement(B,Object.assign({canvasDraw:this.drawOnCanvas(l),onClickWhenHover:n,onDoubleClickWhenHover:o,onContextMenuWhenHover:r,onHover:i,onUnHover:a},u))}}]),n}(c.Component);Yo.defaultProps={connectNulls:!1,defined:function(t){return void 0!==t&&!isNaN(t)},hoverStrokeWidth:4,hoverTolerance:6,highlightOnHover:!1,strokeDasharray:"Solid",strokeStyle:"#2196f3",strokeWidth:1};var Bo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=t&&a.setAttribute("nonce",t),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";var h=l.createElement("div");h.className="expand-trigger",h.appendChild(l.createElement("div"));var p=l.createElement("div");p.className="contract-trigger",i.__resizeTriggers__.appendChild(h),i.__resizeTriggers__.appendChild(p),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(t,e){if(c)t.detachEvent("onresize",e);else if(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),!t.__resizeListeners__.length){t.removeEventListener("scroll",s,!0),t.__resizeTriggers__.__animationListener__&&(t.__resizeTriggers__.removeEventListener(r,t.__resizeTriggers__.__animationListener__),t.__resizeTriggers__.__animationListener__=null);try{t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__)}catch(n){}}}}}null==si||null==ci?(ri=ii,oi=function(t){return ai(t,20)}):(ri=function(t){var e=ei(t,2),n=e[0],r=e[1];si(n),ii(r)},oi=function(t){var e=ci((function(){ii(n),t()})),n=ai((function(){si(e),t()}),20);return[e,n]});var li=function(t){function e(){var t,n,r;Ko(this,e);for(var o=arguments.length,i=Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:2;return t.toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e})},yi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return s(Array(t).keys()).map((function(t){return e+t*n}))},bi=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:10;return t>=n?yi(t+1,e):yi(n+1,e,t/n)}(P-_,_).map((function(t){return m.reduce((function(e,n){var r,o=g[n];return e[n]=xi(o.optionLegs,t,a).total-((null===(r=o.value)||void 0===r?void 0:r.total)||0),e}),{x:t})})),k=[_,P],C=Jr([0,P-_],[_,P]),M=function(t){return function(e){return e[t]}},D=m.map((function(t){return c.createElement(Yo,{key:"series-".concat(t),strokeStyle:g[t].color,yAccessor:M(t)})})),O=m.map((function(t){return c.createElement(hn,{key:"coords-".concat(t),fillStyle:g[t].color,strokeStyle:g[t].color,yAccessor:M(t)})})),A=m.map((function(t){return c.createElement(pi,{key:"edges-".concat(t),at:"right",orient:"right",displayFormat:mi,yAccessor:M(t)})})),E=m.map((function(t,e){return c.createElement(Go,{key:"tooltips-".concat(t),yAccessor:M(t),yLabel:t,yDisplayFormat:mi,labelFill:g[t].color,origin:[8,16*(e+1)]})}));return c.createElement(Eo,Object.assign({},h,{data:S,margin:{left:0,right:50,top:0,bottom:30},xScale:C,xAccessor:function(t){return t.x},xExtents:k}),c.createElement(to,{id:1,yExtents:function(t){var e,n,r=(e=Math).min.apply(e,s(m.map((function(e){return t[e]})))),o=(n=Math).max.apply(n,s(m.map((function(e){return t[e]}))));return[r-Math.abs(.2*r),o+Math.abs(.2*o)]}},c.createElement(cn,null),c.createElement(ln,{ticks:5}),c.createElement(gn,{at:"bottom",orient:"bottom",displayFormat:mi}),f&&c.createElement(B,{clip:!1,canvasDraw:function(t,e){var n,r=e.currentItem,o=!!r&&r,i=o.x,s=bi(o,["x"]);if(i!==d){v(i);var c=null===(n=Object.keys(s))||void 0===n?void 0:n.reduce((function(t,e){return g[e]&&(t[e]=xi(g[e].optionLegs,i,a)),t}),{});f&&f(i,y,c)}},drawOn:["mousemove"]}),D,O,A,E,l))},function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).ref=c.createRef(),t}return f(n,[{key:"componentDidMount",value:function(){var t,e,n,r,o,i=this.ref.current;if(null!==i){var a=i.getContext("2d"),s=window.devicePixelRatio,c=null!==(o=null!==(r=null!==(n=null!==(e=null!==(t=a.webkitBackingStorePixelRatio)&&void 0!==t?t:a.mozBackingStorePixelRatio)&&void 0!==e?e:a.msBackingStorePixelRatio)&&void 0!==n?n:a.oBackingStorePixelRatio)&&void 0!==r?r:a.backingStorePixelRatio)&&void 0!==o?o:1;this.setState({ratio:s/c})}else this.setState({ratio:1})}},{key:"render",value:function(){var t=this.state;return null!==t?c.createElement(vi,Object.assign({},this.props,{ratio:t.ratio})):c.createElement("canvas",{ref:this.ref})}}]),n}(c.Component))),_i=wi},2703:function(t,e,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(t,e,n){t.exports=n(2703)()},414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4758:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:h(t)?2:p(t)?3:0}function c(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){return 2===s(t)?t.get(e):t[e]}function l(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function f(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){return L&&t instanceof Map}function p(t){return X&&t instanceof Set}function d(t){return t.o||t.t}function v(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=V(t);delete e[Y];for(var n=U(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=m),Object.freeze(t),e&&a(t,(function(t,e){return g(e,!0)}),!0)),t}function m(){r(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(t){var e=$[t];return e||r(18,t),e}function x(){return F}function w(t,e){e&&(b("Patches"),t.u=[],t.s=[],t.v=e)}function _(t){P(t),t.p.forEach(k),t.p=null}function P(t){t===F&&(F=t.l)}function S(t){return F={p:[],l:F,h:t,m:!0,_:0}}function k(t){var e=t[Y];0===e.i||1===e.i?e.j():e.O=!0}function C(t,e){e._=e.p.length;var n=e.p[0],o=void 0!==t&&t!==n;return e.h.g||b("ES5").S(e,t,o),o?(n[Y].P&&(_(e),r(4)),i(t)&&(t=M(e,t),e.l||O(e,t)),e.u&&b("Patches").M(n[Y].t,t,e.u,e.s)):t=M(e,n,[]),_(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(t,e,n){if(y(e))return e;var r=e[Y];if(!r)return a(e,(function(o,i){return D(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return O(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o;a(3===r.i?new Set(o):o,(function(e,i){return D(t,r,o,e,i,n)})),O(t,o,!1),n&&t.u&&b("Patches").R(r,n,t.u,t.s)}return r.o}function D(t,e,n,r,a,s){if(o(a)){var u=M(t,a,s&&e&&3!==e.i&&!c(e.D,r)?s.concat(r):void 0);if(l(n,r,u),!o(u))return;t.m=!1}if(i(a)&&!y(a)){if(!t.h.F&&t._<1)return;M(t,a),e&&e.A.l||O(t,a)}}function O(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&g(e,n)}function A(t,e){var n=t[Y];return(n?d(n):t)[e]}function E(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function T(t){t.P||(t.P=!0,t.l&&T(t.l))}function N(t){t.o||(t.o=v(t.t))}function j(t,e,n){var r=h(e)?b("MapSet").N(e,n):p(e)?b("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:x(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,i=G;n&&(o=[r],i=K);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,n):b("ES5").J(e,n);return(n?n.A:x()).p.push(r),r}function R(t){return o(t)||r(22,t),function t(e){if(!i(e))return e;var n,r=e[Y],o=s(e);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=I(e,o),r.I=!1}else n=I(e,o);return a(n,(function(e,o){r&&u(r.t,e)===o||l(n,e,t(o))})),3===o?new Set(n):n}(t)}function I(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return v(t)}n.d(e,{x:function(){return rt}});var z,F,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),L="undefined"!=typeof Map,X="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),Z=W?Symbol.for("immer-draftable"):"__$immer_draftable",Y=W?Symbol.for("immer-state"):"__$immer_state",B=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),U="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(t){var e={};return U(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},$={},G={get:function(t,e){if(e===Y)return t;var n=d(t);if(!c(n,e))return function(t,e,n){var r,o=E(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!i(r)?r:r===A(t.t,e)?(N(t),t.o[e]=j(t.A.h,r,t)):r},has:function(t,e){return e in d(t)},ownKeys:function(t){return Reflect.ownKeys(d(t))},set:function(t,e,n){var r=E(d(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=A(d(t),e),i=null==o?void 0:o[Y];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(f(n,o)&&(void 0!==n||c(t.t,e)))return!0;N(t),T(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==A(t.t,e)||e in t.t?(t.D[e]=!1,N(t),T(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=d(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},K={};a(G,(function(t,e){K[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),K.deleteProperty=function(t,e){return K.set.call(this,t,e,void 0)},K.set=function(t,e,n){return G.set.call(this,t[0],e,n,t[0])};var J=function(){function t(t){var e=this;this.g=q,this.F=!0,this.produce=function(t,n,o){if("function"==typeof t&&"function"!=typeof n){var a=n;n=t;var s=e;return function(t){var e=this;void 0===t&&(t=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=b("Patches").$;return o(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Q=new J,tt=Q.produce,et=(Q.produceWithPatches.bind(Q),Q.setAutoFreeze.bind(Q),Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q),Q.createDraft.bind(Q),Q.finishDraft.bind(Q),tt),nt=n(7294);function rt(t){var e=(0,nt.useState)((function(){return g("function"==typeof t?t():t,!0)})),n=e[1];return[e[0],(0,nt.useCallback)((function(t){n("function"==typeof t?et(t):g(t))}),[])]}},943:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=8)e=1;else if(t<=-8)e=0;else{for(var r=0;r<100;r++)e+=Math.pow(t,2*r+1)/n(2*r+1);e*=Math.pow(Math.E,-.5*Math.pow(t,2)),e/=Math.sqrt(2*Math.PI),e+=.5}return e}function n(t){for(var e=1,n=t;n>1;n-=2)e*=n;return e}t.exports={blackScholes:function(t,n,r,o,i,a){var s=(i*r+Math.pow(o,2)*r/2-Math.log(n/t))/(o*Math.sqrt(r));return"call"===a?t*e(s)-n*Math.pow(Math.E,-1*i*r)*e(s-o*Math.sqrt(r)):n*Math.pow(Math.E,-1*i*r)*e(o*Math.sqrt(r)-s)-t*e(-s)},stdNormCDF:e,getW:function(t,e,n,r,o){return(o*n+Math.pow(r,2)*n/2-Math.log(e/t))/(r*Math.sqrt(n))}}},4779:function(t,e,n){var r=9007199254740991,o="[object Arguments]",i="[object Function]",a="[object GeneratorFunction]",s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")();function l(t,e){for(var n=-1,r=e.length,o=t.length;++n0&&n(s)?e>1?m(s,e-1,n,r,o):l(o,s):r||(o[o.length]=s)}return o}function y(t){return b(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!function(t){var e=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}(t)?p.call(t):"";return e==i||e==a}(t)}(t)}(t)&&h.call(t,"callee")&&(!v.call(t,"callee")||p.call(t)==o)}(t)||!!(g&&t&&t[g])}var b=Array.isArray;t.exports=function(t){return(t?t.length:0)?m(t,Infinity):[]}},6646:function(t,e,n){"use strict";n.d(e,{Z:function(){return _i},x:function(){return mi}});var r=n(828),o=n(943);var i=n(3375);var a=n(1566);function s(t){return function(t){if(Array.isArray(t))return(0,o.Z)(t)}(t)||(0,i.Z)(t)||(0,a.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var c=n(7294);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n0)-(t<0)},S=function(t){return"function"===typeof t?t:function(){return t}};function k(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}var C="mouseenter.interaction",M="mouseleave.interaction",D="mousemove.pan",O="mouseup.pan",A="touchmove.pan",E="touchend.pan touchcancel.pan";function T(t){return{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY}}function N(t,e){if(!e||!t)return t?t[0]:void 0;for(var n,r=0;r=0;o--)if(r=t[o],I(e(r)))return r}var I=function(t){return null!==t&&void 0!==t};function z(t){return!I(t)}function F(t,e){var n=e.currentTarget,r=n.getBoundingClientRect(),o=t.clientX-r.left-n.clientLeft,i=t.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(i)]}function W(t,e){var n=t.currentTarget,r=null!==e&&void 0!==e?e:n.getBoundingClientRect(),o=t.clientX-r.left-n.clientLeft,i=t.clientY-r.top-n.clientTop;return[Math.round(o),Math.round(i)]}function L(t,e){t.forEach((function(t){t.setTransform(1,0,0,1,0,0),t.clearRect(-1,-1,t.canvas.width+2,t.canvas.height+2),t.scale(e,e)}))}var X={mouseleave:"mousemove",panend:"pan",pinchzoom:"pan",mousedown:"mousemove",click:"mousemove",contextmenu:"mousemove",dblclick:"mousemove",dragstart:"drag",dragend:"drag",dragcancel:"drag",zoom:"zoom"},q=function(t){p(n,t);var e=y(n);function n(t,r){var o;u(this,n),(o=e.call(this,t,r)).moreProps={},o.dragInProgress=!1,o.evaluationInProgress=!1,o.iSetTheCursorClass=!1,o.listener=function(t,e,n,r){void 0!==e&&o.updateMoreProps(e),o.evaluationInProgress=!0,o.evaluateType(t,r),o.evaluationInProgress=!1},o.drawOnCanvas=o.drawOnCanvas.bind(g(o)),o.getMoreProps=o.getMoreProps.bind(g(o)),o.draw=o.draw.bind(g(o)),o.updateMoreProps=o.updateMoreProps.bind(g(o)),o.evaluateType=o.evaluateType.bind(g(o)),o.isHover=o.isHover.bind(g(o)),o.preCanvasDraw=o.preCanvasDraw.bind(g(o)),o.postCanvasDraw=o.postCanvasDraw.bind(g(o)),o.getPanConditions=o.getPanConditions.bind(g(o)),o.shouldTypeProceed=o.shouldTypeProceed.bind(g(o)),o.preEvaluate=o.preEvaluate.bind(g(o));var i=r.generateSubscriptionId;return o.suscriberId=i(),o.state={updateCount:0},o}return f(n,[{key:"updateMoreProps",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.moreProps[n]=t[n]}))}},{key:"shouldTypeProceed",value:function(t,e){return!0}},{key:"preEvaluate",value:function(t,e,n){}},{key:"evaluateType",value:function(t,e){var n=X[t]||t;if(this.props.drawOn.indexOf(n)>-1&&(this.preEvaluate(t,this.moreProps,e),this.shouldTypeProceed(t,this.moreProps)))switch(t){case"zoom":case"mouseenter":break;case"mouseleave":this.moreProps.hovering=!1,this.props.onUnHover&&this.props.onUnHover(e,this.getMoreProps());break;case"contextmenu":this.props.onContextMenu&&this.props.onContextMenu(e,this.getMoreProps()),this.moreProps.hovering&&this.props.onContextMenuWhenHover&&this.props.onContextMenuWhenHover(e,this.getMoreProps());break;case"mousedown":this.props.onMouseDown&&this.props.onMouseDown(e,this.getMoreProps());break;case"click":var r=this.props,o=r.onClick,i=r.onClickOutside,a=r.onClickWhenHover,s=this.getMoreProps();s.hovering&&void 0!==a?a(e,s):void 0!==i&&i(e,s),void 0!==o&&o(e,s);break;case"mousemove":var c=this.moreProps.hovering;this.moreProps.hovering=this.isHover(e);var u=this.context,l=u.amIOnTop,f=u.setCursorClass;this.moreProps.hovering&&!this.props.selected&&l(this.suscriberId)&&void 0!==this.props.onHover?(f("react-financial-charts-pointer-cursor"),this.iSetTheCursorClass=!0):this.moreProps.hovering&&this.props.selected&&l(this.suscriberId)?(f(this.props.interactiveCursorClass),this.iSetTheCursorClass=!0):c&&!this.moreProps.hovering&&this.iSetTheCursorClass&&(this.iSetTheCursorClass=!1,f(null));var h=this.getMoreProps();this.moreProps.hovering&&!c&&this.props.onHover&&this.props.onHover(e,h),c&&!this.moreProps.hovering&&this.props.onUnHover&&this.props.onUnHover(e,h),this.props.onMouseMove&&this.props.onMouseMove(e,h);break;case"dblclick":var p=this.getMoreProps();this.props.onDoubleClick&&this.props.onDoubleClick(e,p),this.moreProps.hovering&&this.props.onDoubleClickWhenHover&&this.props.onDoubleClickWhenHover(e,p);break;case"pan":this.moreProps.hovering=!1,this.props.onPan&&this.props.onPan(e,this.getMoreProps());break;case"panend":this.props.onPanEnd&&this.props.onPanEnd(e,this.getMoreProps());break;case"dragstart":if(this.getPanConditions().draggable)(0,this.context.amIOnTop)(this.suscriberId)&&(this.dragInProgress=!0,void 0!==this.props.onDragStart&&this.props.onDragStart(e,this.getMoreProps()));break;case"drag":this.dragInProgress&&this.props.onDrag&&this.props.onDrag(e,this.getMoreProps());break;case"dragend":this.dragInProgress&&this.props.onDragComplete&&this.props.onDragComplete(e,this.getMoreProps()),this.dragInProgress=!1;break;case"dragcancel":if(this.dragInProgress||this.iSetTheCursorClass)(0,this.context.setCursorClass)(null)}}},{key:"isHover",value:function(t){var e=this.props.isHover;return void 0!==e&&e(this.getMoreProps(),t)}},{key:"getPanConditions",value:function(){return{draggable:!(!this.props.selected||!this.moreProps.hovering)||this.props.enableDragOnHover&&this.moreProps.hovering,panEnabled:!this.props.disablePan}}},{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},e=t.trigger,n=t.force,r=X[e]||e,o=this.props.drawOn.indexOf(r)>-1;if(o||this.props.selected||n){var i=this.props.canvasDraw;if(void 0===i){var a=this.state.updateCount;this.setState({updateCount:a+1})}else this.drawOnCanvas()}}},{key:"UNSAFE_componentWillMount",value:function(){var t=this.context,e=t.subscribe,n=t.chartId,r=this.props,o=r.clip,i=r.edgeClip;e(this.suscriberId,{chartId:n,clip:o,edgeClip:i,listener:this.listener,draw:this.draw,getPanConditions:this.getPanConditions}),this.UNSAFE_componentWillReceiveProps(this.props,this.context)}},{key:"componentWillUnmount",value:function(){((0,this.context.unsubscribe)(this.suscriberId),this.iSetTheCursorClass)&&(0,this.context.setCursorClass)(null)}},{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.canvasDraw,r=e.selected,o=e.interactiveCursorClass;if(t.selected!==r){var i=this.context.setCursorClass;r&&this.moreProps.hovering?(this.iSetTheCursorClass=!0,i(o)):(this.iSetTheCursorClass=!1,i(null))}void 0===n||this.evaluationInProgress||(this.updateMoreProps(this.moreProps),this.drawOnCanvas())}},{key:"UNSAFE_componentWillReceiveProps",value:function(t,e){var n=e.xScale,r=e.plotData,o=e.chartConfig,i=e.getMutableState;this.moreProps=Object.assign(Object.assign(Object.assign({},this.moreProps),i()),{xScale:n,plotData:r,chartConfig:o})}},{key:"getMoreProps",value:function(){var t=this.context,e=t.xScale,n=t.plotData,r=t.chartConfig,o=t.morePropsDecorator,i=t.xAccessor,a=t.displayXAccessor,s=t.width,c=t.height,u=this.context,l=u.chartId,f=u.fullData,h=Object.assign({xScale:e,plotData:n,chartConfig:r,xAccessor:i,displayXAccessor:a,width:s,height:c,chartId:l,fullData:f},this.moreProps);return(o||_)(h)}},{key:"preCanvasDraw",value:function(t,e){}},{key:"postCanvasDraw",value:function(t,e){}},{key:"drawOnCanvas",value:function(){var t=this.props,e=t.canvasDraw,n=t.canvasToDraw;if(void 0!==e&&void 0!==n){var r=this.context.getCanvasContexts,o=this.getMoreProps(),i=n(r());void 0!==i&&(this.preCanvasDraw(i,o),e(i,o),this.postCanvasDraw(i,o))}}},{key:"render",value:function(){var t=this.props,e=t.canvasDraw,n=t.clip,r=t.svgDraw;if(void 0!==e||void 0===r)return null;var o=this.context.chartId,i=n?{clipPath:"url(#chart-area-clip".concat(void 0!==o?"-"+o:"",")")}:void 0;return c.createElement("g",{style:i},r(this.getMoreProps()))}}]),n}(c.Component);q.defaultProps={svgDraw:S(null),draw:[],canvasToDraw:function(t){return t.mouseCoord},clip:!0,edgeClip:!1,selected:!1,disablePan:!1,enableDragOnHover:!1},q.contextTypes={width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]),getCanvasContexts:b.func,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,plotData:b.array.isRequired,fullData:b.array.isRequired,chartConfig:b.oneOfType([b.array,b.object]).isRequired,morePropsDecorator:b.func,generateSubscriptionId:b.func,getMutableState:b.func.isRequired,amIOnTop:b.func.isRequired,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired,setCursorClass:b.func.isRequired};var H=function(t){return t.axes},Z=function(t){return t.mouseCoord},Y=["drag","dragend"],B=function(t){p(n,t);var e=y(n);function n(t,r){var o;return u(this,n),(o=e.call(this,t,r)).preCanvasDraw=o.preCanvasDraw.bind(g(o)),o.postCanvasDraw=o.postCanvasDraw.bind(g(o)),o.shouldTypeProceed=o.shouldTypeProceed.bind(g(o)),o.preEvaluate=o.preEvaluate.bind(g(o)),o.updateMoreProps=o.updateMoreProps.bind(g(o)),o}return f(n,[{key:"preCanvasDraw",value:function(t,e){w(v(n.prototype),"preCanvasDraw",this).call(this,t,e),t.save();var r=this.context,o=r.margin,i=r.ratio,a=e.chartConfig,s=a.width,c=a.height,u=a.origin,l=.5*i+u[0]+o.left,f=.5*i+u[1]+o.top,h=this.props,p=h.clip,d=h.edgeClip;t.setTransform(1,0,0,1,0,0),t.scale(i,i),d&&(t.beginPath(),t.rect(-1,f-10,s+o.left+o.right+1,c+20),t.clip()),t.translate(l,f),p&&(t.beginPath(),t.rect(-1,-1,s+1,c+1),t.clip())}},{key:"postCanvasDraw",value:function(t,e){w(v(n.prototype),"postCanvasDraw",this).call(this,t,e),t.restore()}},{key:"updateMoreProps",value:function(t){w(v(n.prototype),"updateMoreProps",this).call(this,t);var e=t.chartConfig;if(e&&Array.isArray(e)){var o=this.context.chartId,i=e.find((function(t){return t.id===o}));this.moreProps.chartConfig=i}if(I(this.moreProps.chartConfig)){var a=this.moreProps.chartConfig,s=(0,r.Z)(a.origin,2),c=s[0],u=s[1];if(I(t.mouseXY)){var l=(0,r.Z)(t.mouseXY,2),f=l[0],h=l[1];this.moreProps.mouseXY=[f-c,h-u]}if(I(t.startPos)){var p=(0,r.Z)(t.startPos,2),d=p[0],g=p[1];this.moreProps.startPos=[d-c,g-u]}}}},{key:"preEvaluate",value:function(){}},{key:"shouldTypeProceed",value:function(t,e){return!("mousemove"!==t&&"click"!==t||!this.props.disablePan)||(-1!==Y.indexOf(t)||!I(e)||!I(e.currentCharts)||e.currentCharts.indexOf(this.context.chartId)>-1)}}]),n}(q);B.defaultProps=q.defaultProps,B.contextTypes={width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]),getCanvasContexts:b.func,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,plotData:b.array.isRequired,fullData:b.array.isRequired,chartConfig:b.oneOfType([b.array,b.object]).isRequired,morePropsDecorator:b.func,generateSubscriptionId:b.func,getMutableState:b.func.isRequired,amIOnTop:b.func.isRequired,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired,setCursorClass:b.func.isRequired,canvasOriginX:b.number,canvasOriginY:b.number,ratio:b.number.isRequired};var U=function(t){var e=V(t).split(",");return 1===e.length?[]:e.map((function(t){return Number(t)}))},V=function(t){switch(t){default:case"Solid":return"none";case"ShortDash":return"6, 2";case"ShortDash2":return"6, 3";case"ShortDot":return"2, 2";case"ShortDashDot":return"6, 2, 2, 2";case"ShortDashDotDot":return"6, 2, 2, 2, 2, 2";case"Dot":return"2, 6";case"Dash":return"4, 6";case"LongDash":return"16, 6";case"DashDot":return"8, 6, 2, 6";case"LongDashDot":return"16, 6, 2, 6";case"LongDashDotDot":return"16, 6, 2, 6, 2, 6"}};function $(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function G(t){if(!(o=t.length))return[];for(var e=-1,n=$(t,K),r=new Array(n);++e{}};function Q(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function nt(t,e){for(var n,r=0,o=t.length;r0)for(var n,r,o=new Array(n),i=0;i=0&&e._call.call(null,t),e=e._next;--st}()}finally{st=0,function(){var t,e,n=ot,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ot=e);it=t,wt(r)}(),ft=0}}function xt(){var t=pt.now(),e=t-lt;e>1e3&&(ht-=e,lt=t)}function wt(t){st||(ct&&(ct=clearTimeout(ct)),t-ft>24?(t<1/0&&(ct=setTimeout(bt,t-pt.now()-ht)),ut&&(ut=clearInterval(ut))):(ut||(lt=pt.now(),ut=setInterval(xt,1e3)),st=1,dt(bt)))}mt.prototype=yt.prototype={constructor:mt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?vt():+n)+(null==e?0:+e),this._next||it===this||(it?it._next=this:ot=this,it=this),this._call=t,this._time=n,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};const _t=4294967296;var Pt=Math.PI*(3-Math.sqrt(5));function St(t){var e,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,a=.6,s=new Map,c=yt(f),u=at("tick","end"),l=function(){let t=1;return()=>(t=(1664525*t+1013904223)%_t)/_t}();function f(){h(),u.call("tick",e),n1?(null==n?s.delete(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var o,i,a,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}}function kt(t){return function(){return t}}function Ct(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var o,i,a,s,c,u,l,f,h,p=t._root,d={data:r},v=t._x0,g=t._y0,m=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((u=e>=(i=(v+m)/2))?v=i:m=i,(l=n>=(a=(g+y)/2))?g=a:y=a,o=p,!(p=p[f=l<<1|u]))return o[f]=d,t;if(s=+t._x.call(null,p.data),c=+t._y.call(null,p.data),e===s&&n===c)return d.next=p,o?o[f]=d:t._root=d,t;do{o=o?o[f]=new Array(4):t._root=new Array(4),(u=e>=(i=(v+m)/2))?v=i:m=i,(l=n>=(a=(g+y)/2))?g=a:y=a}while((f=l<<1|u)===(h=(c>=a)<<1|s>=i));return o[h]=p,o[f]=d,t}function Mt(t,e,n,r,o){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=o}function Dt(t){return t[0]}function Ot(t){return t[1]}function At(t,e,n){var r=new Et(null==e?Dt:e,null==n?Ot:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Et(t,e,n,r,o,i){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function Tt(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Nt=At.prototype=Et.prototype;function jt(t){return 1e-6*(t()-.5)}function Rt(t){return t.x+t.vx}function It(t){return t.y+t.vy}function zt(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ft(t,e){if(t=zt(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}function Wt(){}function Lt(t){return null==t?Wt:function(){return this.querySelector(t)}}function Xt(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}function qt(){return[]}function Ht(t){return function(e){return e.matches(t)}}Nt.copy=function(){var t,e,n=new Et(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=Tt(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var o=0;o<4;++o)(e=r.source[o])&&(e.length?t.push({source:e,target:r.target[o]=new Array(4)}):r.target[o]=Tt(e));return n},Nt.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Ct(this.cover(e,n),e,n,t)},Nt.addAll=function(t){var e,n,r,o,i=t.length,a=new Array(i),s=new Array(i),c=1/0,u=1/0,l=-1/0,f=-1/0;for(n=0;nl&&(l=r),of&&(f=o));if(c>l||u>f)return this;for(this.cover(c,u).cover(l,f),n=0;nt||t>=o||r>e||e>=i;)switch(s=(eh||(i=c.y0)>p||(a=c.x1)=m)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-u],d[d.length-1-u]=c)}else{var y=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),x=y*y+b*b;if(x=(s=(d+g)/2))?d=s:g=s,(l=a>=(c=(v+m)/2))?v=c:m=c,e=p,!(p=p[f=l<<1|u]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):e?(o?e[f]=o:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=o,this)},Nt.removeAll=function(t){for(var e=0,n=t.length;ee?1:t>=e?0:NaN}$t.prototype={constructor:$t,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ee="http://www.w3.org/1999/xhtml",ne={svg:"http://www.w3.org/2000/svg",xhtml:ee,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function re(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ne.hasOwnProperty(e)?{space:ne[e],local:t}:t}function oe(t){return function(){this.removeAttribute(t)}}function ie(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ae(t,e){return function(){this.setAttribute(t,e)}}function se(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ce(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ue(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function le(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fe(t){return function(){this.style.removeProperty(t)}}function he(t,e,n){return function(){this.style.setProperty(t,e,n)}}function pe(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function de(t,e){return t.style.getPropertyValue(e)||le(t).getComputedStyle(t,null).getPropertyValue(e)}function ve(t){return function(){delete this[t]}}function ge(t,e){return function(){this[t]=e}}function me(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ye(t){return t.trim().split(/^|\s+/)}function be(t){return t.classList||new xe(t)}function xe(t){this._node=t,this._names=ye(t.getAttribute("class")||"")}function we(t,e){for(var n=be(t),r=-1,o=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function qe(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Ue=[null];function Ve(t,e){this._groups=t,this._parents=e}function $e(){return new Ve([[document.documentElement]],Ue)}Ve.prototype=$e.prototype={constructor:Ve,select:function(t){"function"!==typeof t&&(t=Lt(t));for(var e=this._groups,n=e.length,r=new Array(n),o=0;o=w&&(w=x+1);!(b=g[w])&&++w=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=te);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==e?fe:"function"===typeof e?pe:he)(t,e,null==n?"":n)):de(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?ve:"function"===typeof e?me:ge)(t,e)):this.node()[t]},classed:function(t,e){var n=ye(t+"");if(arguments.length<2){for(var r=be(this.node()),o=-1,i=n.length;++o=o&&(++n,r+=o);else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(i=+i)>=i&&(++n,r+=i)}if(n)return r/n}(c.range());if(void 0===l)return;var f=c.range().map((function(t){return a?t-P(t-l)*u:t+P(t-l)*u})),h=f.map(c.invert);if(P(R(c.range())-j(c.range()))===P(R(f)-j(f))){var p=r.props.axisZoomCallback;void 0!==p&&p(h)}}}},r.handleDragStartTouch=function(t){var e=r.ref.current;if(null!==e){r.dragHappened=!1;var n=r.props,o=(0,n.getScale)((0,n.getMoreProps)());if(1===t.touches.length&&void 0!==o.invert){Ge(k(e)).on(A,r.handleDrag).on(E,r.handleDragEnd);var i=F(T(t.touches[0]),t);r.setState({startPosition:{startScale:o,startXY:i}})}}},r.handleDragStartMouse=function(t){t.preventDefault();var e=r.ref.current;if(null!==e){r.dragHappened=!1;var n=r.props,o=(0,n.getScale)((0,n.getMoreProps)());if(void 0!==o.invert){Ge(k(e)).on(D,r.handleDrag,!1).on(O,r.handleDragEnd,!1);var i=W(t);r.setState({startPosition:{startXY:i,startScale:o}})}}},r.handleRightClick=function(t){t.stopPropagation(),t.preventDefault();var e=r.ref.current;if(null!==e){var n=r.props.onContextMenu;if(void 0!==n){var o=W(t,e.getBoundingClientRect());Ge(k(e)).on(D,null).on(O,null),r.setState({startPosition:null}),n(t,o)}}},r.state={startPosition:null},r}return f(n,[{key:"render",value:function(){var t=this.props,e=t.bg,n=t.className,r=t.zoomCursorClassName,o=null!==this.state.startPosition?r:"react-financial-charts-default-cursor";return c.createElement("rect",{className:"react-financial-charts-enable-interaction ".concat(o," ").concat(n),ref:this.ref,x:e.x,y:e.y,opacity:0,height:e.h,width:e.w,onContextMenu:this.handleRightClick,onMouseDown:this.handleDragStartMouse,onTouchStart:this.handleDragStartTouch})}}]),n}(c.Component),Je=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ou+d||il+d||ac.index){var v=u-s.x-s.vx,g=l-s.y-s.vy,m=v*v+g*g;mt.r&&(t.r=t[e].r)}function c(){if(e){var r,o,i=e.length;for(n=new Array(i),r=0;r.01?Object.assign(Object.assign({},e),{x2:n.x,labelX:n.x}):e}))}}else O=n.map((function(t){var n=Math.round(e(t));return{value:t,x1:0,y1:n,x2:j*a,y2:n,labelX:j*R,labelY:n}})),A=".32em",E=.32*d,T=j<0?"end":"start";return Object.assign({orient:o,ticks:O,scale:e,tickStrokeStyle:w,tickLabelFill:l||w,tickStrokeWidth:f,tickStrokeDasharray:h,dy:A,canvas_dy:E,textAnchor:T,fontSize:d,fontFamily:v,fontWeight:g,format:N,showTickLabel:y},S)},en=function(t,e,n){var r=e.orient,o=e.outerTickSize,i=e.strokeStyle,a=e.strokeWidth,s="top"===r||"left"===r?-1:1,c="bottom"===r||"top"===r;t.lineWidth=a,t.strokeStyle=i,t.beginPath();var u=j(n),l=R(n),f=s*o;c?(t.moveTo(u,f),t.lineTo(u,0),t.lineTo(l,0),t.lineTo(l,f)):(t.moveTo(f,u),t.lineTo(0,u),t.lineTo(0,l),t.lineTo(f,l)),t.stroke()},nn=function(t,e){var n=e.ticks,r=e.tickStrokeStyle;void 0!==r&&(t.strokeStyle=r,t.fillStyle=r),n.forEach((function(n){on(t,n,e)}))},rn=function(t,e,n,r){var o=n.orient,i=n.gridLinesStrokeWidth,a=n.gridLinesStrokeStyle,s=n.gridLinesStrokeDasharray,c=r.chartConfig,u=c.height,l=c.width;void 0!==a&&(t.strokeStyle=a),t.beginPath();var f="top"===o||"left"===o?1:-1;switch(o){case"top":case"bottom":t.moveTo(e.x1,0),t.lineTo(e.x2,f*u);break;default:t.moveTo(0,e.y1),t.lineTo(f*l,e.y2)}t.lineWidth=i;var h=U(s);t.setLineDash(h),t.stroke()},on=function(t,e,n){var r=n.tickStrokeWidth,o=n.tickStrokeDasharray;t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=r;var i=U(o);t.setLineDash(i),t.stroke()},an=function(t,e,n){var r=n.canvas_dy,o=(0,n.format)(e.value);t.beginPath(),t.fillText(o,e.labelX,e.labelY+r)},sn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o0&&"right"===c.orient?(v-=f,t.moveTo(v,g+m),t.lineTo(v+f,g),t.lineTo(v+h+f,g),t.lineTo(v+h+f,g+p),t.lineTo(v+f,g+p),t.closePath()):f>0&&"left"===c.orient?(t.moveTo(v,g),t.lineTo(v+h,g),t.lineTo(v+h+f,g+m),t.lineTo(v+h,g+p),t.lineTo(v,g+p),t.closePath()):d?vn(t,v-.5,g-.5,h,p,3):t.rect(v-.5,g,h,p),t.fill(),void 0!==c.coordinateBase.stroke&&t.stroke(),void 0!==c.coordinate&&(t.fillStyle=c.coordinate.textFill,t.textAlign="middle"===c.coordinate.textAnchor?"center":c.coordinate.textAnchor,t.fillText(c.coordinate.displayCoordinate,c.coordinate.edgeXText,c.coordinate.edgeYText))}}},vn=function(t,e,n,r,o,i){t.beginPath(),t.moveTo(e+i,n),t.lineTo(e+r-i,n),t.quadraticCurveTo(e+r,n,e+r,n+i),t.lineTo(e+r,n+o-i),t.quadraticCurveTo(e+r,n+o,e+r-i,n+o),t.lineTo(e+i,n+o),t.quadraticCurveTo(e,n+o,e,n+o-i),t.lineTo(e,n+i),t.quadraticCurveTo(e,n,e+i,n),t.closePath()},gn=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).drawOnCanvas=function(e,n){var r=t.helper(t.props,n);null!==r&&dn(e,r)},t.helper=function(t,e){var n=e.show,r=e.currentItem,o=e.chartConfig.height;if(z(r))return null;var i=t.customX,a=t.orient,s=t.at,c=t.rectRadius,u=t.rectWidth,l=t.rectHeight,f=t.stroke,h=t.strokeOpacity,p=t.strokeWidth,d=t.fill,v=t.opacity,g=t.fitToText,m=t.fontFamily,y=t.fontSize,b=t.textFill,x="bottom"===s?o:0,w=i(t,e),_=w.x;return{coordinate:w.coordinate,fitToText:g,show:n,type:"vertical",orient:a,edgeAt:x,hideLine:!0,fill:d,opacity:v,fontFamily:m,fontSize:y,textFill:b,stroke:f,strokeOpacity:h,strokeWidth:p,rectWidth:u,rectHeight:l,rectRadius:c,arrowWidth:0,x1:_,x2:_,y1:0,y2:o}},t}return f(n,[{key:"render",value:function(){return c.createElement(B,{clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:Z,drawOn:["mousemove","pan","drag"]})}}]),n}(c.Component);function mn(t,e){let n,r;if(void 0===e)for(const o of t)null!=o&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r=i&&(n=r=i):(n>i&&(n=i),r=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n=o)&&(n=o)}return n}gn.defaultProps={at:"bottom",customX:function(t,e){var n=e.xScale,r=e.xAccessor,o=e.currentItem,i=e.mouseXY,a=t.snapX,s=a?n(r(o)):i[0],c=e.displayXAccessor,u=t.displayFormat;return{x:s,coordinate:u(a?c(o):n.invert(s))}},fill:"#4C525E",fitToText:!0,fontFamily:"-apple-system, system-ui, Roboto, 'Helvetica Neue', Ubuntu, sans-serif",fontSize:13,opacity:1,orient:"bottom",rectWidth:80,rectHeight:20,snapX:!0,strokeOpacity:1,strokeWidth:1,textFill:"#FFFFFF",yAxisPad:0};var bn=function(t,e){if(t===e)return!0;if(!fn(t,Object)||!fn(e,Object))return!1;for(var n=Object.keys(t),r=n.length,o=0;o=0?(i>=_n?10:i>=Pn?5:i>=Sn?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=_n?10:i>=Pn?5:i>=Sn?2:1)}function Cn(t,e){return te?1:t>=e?0:NaN}function Mn(t){let e=t,n=t;function r(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)<0?r=i+1:o=i}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Cn(t(e),n)}(t)),{left:r,center:function(t,n,o,i){null==o&&(o=0),null==i&&(i=t.length);const a=r(t,n,o,i-1);return a>o&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)>0?o=i:r=i+1}return r}}}const Dn=Mn(Cn),On=Dn.right;Dn.left,Mn((function(t){return null===t?NaN:+t})).center;var An=On;function En(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Tn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nn(){}var jn=.7,Rn=1/jn,In="\\s*([+-]?\\d+)\\s*",zn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wn=/^#([0-9a-f]{3,8})$/,Ln=new RegExp("^rgb\\("+[In,In,In]+"\\)$"),Xn=new RegExp("^rgb\\("+[Fn,Fn,Fn]+"\\)$"),qn=new RegExp("^rgba\\("+[In,In,In,zn]+"\\)$"),Hn=new RegExp("^rgba\\("+[Fn,Fn,Fn,zn]+"\\)$"),Zn=new RegExp("^hsl\\("+[zn,Fn,Fn]+"\\)$"),Yn=new RegExp("^hsla\\("+[zn,Fn,Fn,zn]+"\\)$"),Bn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Un(){return this.rgb().formatHex()}function Vn(){return this.rgb().formatRgb()}function $n(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Wn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Gn(e):3===n?new tr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Kn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Kn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ln.exec(t))?new tr(e[1],e[2],e[3],1):(e=Xn.exec(t))?new tr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qn.exec(t))?Kn(e[1],e[2],e[3],e[4]):(e=Hn.exec(t))?Kn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Zn.exec(t))?or(e[1],e[2]/100,e[3]/100,1):(e=Yn.exec(t))?or(e[1],e[2]/100,e[3]/100,e[4]):Bn.hasOwnProperty(t)?Gn(Bn[t]):"transparent"===t?new tr(NaN,NaN,NaN,0):null}function Gn(t){return new tr(t>>16&255,t>>8&255,255&t,1)}function Kn(t,e,n,r){return r<=0&&(t=e=n=NaN),new tr(t,e,n,r)}function Jn(t){return t instanceof Nn||(t=$n(t)),t?new tr((t=t.rgb()).r,t.g,t.b,t.opacity):new tr}function Qn(t,e,n,r){return 1===arguments.length?Jn(t):new tr(t,e,n,null==r?1:r)}function tr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function er(){return"#"+rr(this.r)+rr(this.g)+rr(this.b)}function nr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function rr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function or(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ar(t,e,n,r)}function ir(t){if(t instanceof ar)return new ar(t.h,t.s,t.l,t.opacity);if(t instanceof Nn||(t=$n(t)),!t)return new ar;if(t instanceof ar)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(a=e===i?(n-r)/s+6*(n0&&c<1?0:a,new ar(a,s,c,t.opacity)}function ar(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cr(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}En(Nn,$n,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Un,formatHex:Un,formatHsl:function(){return ir(this).formatHsl()},formatRgb:Vn,toString:Vn}),En(tr,Qn,Tn(Nn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new tr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?jn:Math.pow(jn,t),new tr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:er,formatHex:er,formatRgb:nr,toString:nr})),En(ar,(function(t,e,n,r){return 1===arguments.length?ir(t):new ar(t,e,n,null==r?1:r)}),Tn(Nn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new ar(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?jn:Math.pow(jn,t),new ar(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new tr(sr(t>=240?t-240:t+120,o,r),sr(t,o,r),sr(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ur=t=>()=>t;function lr(t,e){return function(n){return t+n*e}}function fr(t){return 1===(t=+t)?hr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ur(isNaN(e)?n:e)}}function hr(t,e){var n=e-t;return n?lr(t,n):ur(isNaN(t)?e:t)}var pr=function t(e){var n=fr(e);function r(t,e){var r=n((t=Qn(t)).r,(e=Qn(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=hr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function dr(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,s=ri&&(o=e.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,c.push({i:a,x:mr(n,r)})),i=xr.lastIndex;return ie&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Ar:Or,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),s,c)))(t(u(e)))}return f.invert=function(n){return u(e((i||(i=r(s,a.map(t),mr)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,kr),l()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),c=Sr,l()},f.clamp=function(t){return arguments.length?(u=!!t||Mr,l()):u!==Mr},f.interpolate=function(t){return arguments.length?(c=t,l()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function Nr(){return Tr()(Mr,Mr)}function jr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Rr,Ir=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function zr(t){if(!(e=Ir.exec(t)))throw new Error("invalid format: "+t);var e;return new Fr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Fr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Wr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Lr(t){return(t=Wr(Math.abs(t)))?t[1]:NaN}function Xr(t,e){var n=Wr(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}zr.prototype=Fr.prototype,Fr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qr={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Xr(100*t,e),r:Xr,s:function(t,e){var n=Wr(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(Rr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Wr(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Hr(t){return t}var Zr,Yr,Br,Ur=Array.prototype.map,Vr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function $r(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Hr:(e=Ur.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(t.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Hr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ur.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=zr(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):qr[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?o:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?i:/[%p]/.test(y)?c:"",w=qr[y],_=/[defgprs%]/.test(y);function P(t){var o,i,c,h=b,P=x;if("c"===y)P=w(t)+P,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),h=(S?"("===f?f:u:"-"===f||"("===f?"":f)+h,P=("s"===y?Vr[8+Rr/3]:"")+P+(S&&"("===f?")":""),_)for(o=-1,i=t.length;++o(c=t.charCodeAt(o))||c>57){P=(46===c?a+t.slice(o+1):t.slice(o))+P,t=t.slice(0,o);break}}v&&!p&&(t=r(t,1/0));var k=h.length+t.length+P.length,C=k>1)+h+t+P+C.slice(k);break;default:t=C+h+t+P}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),P.toString=function(){return t+""},P}return{format:f,formatPrefix:function(t,e){var n=f(((t=zr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Lr(e)/3))),o=Math.pow(10,-r),i=Vr[8+r/3];return function(t){return n(o*t)+i}}}}function Gr(t,e,n,r){var o,i=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=_n?o*=10:i>=Pn?o*=5:i>=Sn&&(o*=2),e0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,i=new Array(o=r-n+1);++se&&--r,i=new Array(o=r-n+1);++s0;){if((o=kn(c,u,n))===r)return i[a]=c,i[s]=u,e(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return t},t}function Jr(){var t=Nr();return t.copy=function(){return Er(t,Jr())},jr.apply(t,arguments),Kr(t)}Zr=$r({thousands:",",grouping:[3],currency:["$",""]}),Yr=Zr.format,Br=Zr.formatPrefix;var Qr=function(t){p(n,t);var e=y(n);function n(){return u(this,n),e.apply(this,arguments)}return f(n,[{key:"shouldComponentUpdate",value:function(t,e,n){return!bn(this.props,t)||!bn(this.state,e)||!bn(this.context,n)}}]),n}(c.Component),to=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).listener=function(e,n,r,o){var i=t.props,a=i.id,s=i.onContextMenu,c=i.onDoubleClick;switch(e){case"contextmenu":if(void 0===s)return;n.currentCharts.indexOf(a)>-1&&s(o,n);break;case"dblclick":if(void 0===c)return;n.currentCharts.indexOf(a)>-1&&c(o,n)}},t}return f(n,[{key:"componentDidMount",value:function(){var t=this.props.id;(0,this.context.subscribe)("chart_".concat(t),{listener:this.listener})}},{key:"componentWillUnmount",value:function(){var t=this.props.id;(0,this.context.unsubscribe)("chart_".concat(t))}},{key:"getChildContext",value:function(){var t=this.props.id,e=this.context.chartConfig.find((function(e){return e.id===t}));return{chartId:t,chartConfig:e}}},{key:"render",value:function(){var t=this,e=this.context.chartConfig.find((function(e){return e.id===t.props.id})).origin,n=(0,r.Z)(e,2),o=n[0],i=n[1];return c.createElement("g",{transform:"translate(".concat(o,", ").concat(i,")")},this.props.children)}}]),n}(Qr);to.defaultProps={flipYScale:!1,id:0,origin:[0,0],padding:0,yPan:!0,yPanEnabled:!1,yScale:Jr()},to.contextTypes={chartConfig:b.array,subscribe:b.func.isRequired,unsubscribe:b.func.isRequired},to.childContextTypes={chartConfig:b.object.isRequired,chartId:b.oneOfType([b.number,b.string]).isRequired};var eo=function(t,e,n){for(var r=0,o=t.length-1;o-r>1;){var i=Math.round((r+o)/2);n(t[i])<=e?r=i:o=i}var a=n(t[r]),s=n(t[o]);return(null===a||void 0===a?void 0:a.valueOf())===(null===e||void 0===e?void 0:e.valueOf())&&(o=r),(null===s||void 0===s?void 0:s.valueOf())===(null===e||void 0===e?void 0:e.valueOf())&&(r=o),ae&&s>e&&(o=r),{left:r,right:o}};function no(t,e){var n=t.width,r=t.height;return{availableHeight:r,width:n,height:e.height||r}}function ro(t){return function(e){var n=t(e);return function(t){return I(t)&&"object"===typeof t&&!Array.isArray(t)}(n)?function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=Object.keys(t),r=new Array(n.length);return n.forEach((function(n,o){r[o]=e(t[n],n,t)})),r}(n):n}}function oo(t){if(Array.isArray(t)&&2===t.length){var e=(0,r.Z)(t,2),n=e[0],o=e[1];return"number"===typeof n&&"number"===typeof o}return!1}var io=function(t){return void 0!==t&&void 0!==t.id};function ao(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return c.Children.map(e,(function(e){if(void 0!==e&&null!==e&&io(e.props)){var o=Object.assign(Object.assign({},to.defaultProps),e.props),i=o.id,a=o.origin,s=o.padding,c=o.yExtents,u=o.yScale,l=o.flipYScale,f=o.yExtentsCalculator,h=u.copy(),p=no(t,o),d=p.width,v=p.height,g=p.availableHeight,m=o.yPan,y=o.yPanEnabled,b=I(c)?(Array.isArray(c)?c:[c]).map(S):void 0,x=n.find((function(t){return t.id===i}));if(oo(c))if(I(x)&&x.yPan&&x.yPanEnabled&&m&&y&&bn(x.originalYExtentsProp,c))h.domain(x.yScale.domain());else{var w=(0,r.Z)(c,2),_=w[0],P=w[1];h.domain([_,P])}else I(x)&&x.yPanEnabled&&(oo(x.originalYExtentsProp)||(h.domain(x.yScale.domain()),y=!0));return{id:i,origin:S(a)(d,g),padding:s,originalYExtentsProp:c,yExtents:b,yExtentsCalculator:f,flipYScale:l,yScale:h,yPan:m,yPanEnabled:y,width:d,height:v}}})).filter((function(t){return void 0!==t}))}function so(t,e){return t.filter((function(t){var n=t.origin[1],r=n+t.height;return e[1]>n&&e[1]-1,v=l&&p?d?r:i:n,g=function(t,e,n,r){if(t.rangeRoundPoints||z(t.invert)){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints&&t.rangeRoundPoints(r?[0,e]:[e,0],n),t.rangeRound&&t.range(r?[0,e]:[e,0]).padding(n)}else{var o=isNaN(n)?n:{top:n,bottom:n},i=o.top,a=o.bottom;t.range(r?[i,e-a]:[e-a,i])}return t}(u.copy().domain(v),c,s,f);return Object.assign(Object.assign({},t),{yScale:g,realYDomain:n})}));return f(t,l)}function uo(t,e,n,r){var o;if(t.invert)o=function(t,e,n){var r=eo(t,e,n),o=r.left,i=r.right;if(o===i)return t[o];var a=n(t[o]),s=n(t[i]);return Math.abs(a.valueOf()-e.valueOf())Ft(t,e)))}var fo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);oMath.abs(t.deltaX)&&Math.abs(t.deltaY)>0,u=W(t);if(t.preventDefault(),i&&o.focus&&c&&!s){var l=t.deltaY>0?1:-1;void 0!==a&&a(l,u,t)}else if(o.focus){if(o.shouldPan()&&void 0!==o.state.panStart){var f=o.state.panStart,h=f.panStartXScale,p=f.chartsToPan;o.lastNewPos=u,o.panHappened=!0,void 0===o.dx&&(o.dx=0),void 0===o.dy&&(o.dy=0),o.dx-=t.deltaX,o.dy+=t.deltaY;var d={dx:o.dx,dy:o.dy};void 0!==r&&r(u,h,d,p,t)}else{var v=o.props,g=v.xScale,m=so(v.chartConfig,u);o.dx=0,o.dy=0,o.setState({panInProgress:!0,panStart:{panStartXScale:g,panOrigin:u,chartsToPan:m}})}o.queuePanEnd(t)}}},o.handleMouseMove=function(t){var e=o.props,n=e.onMouseMove,r=e.mouseMove;void 0!==n&&(o.mouseInteraction&&r&&!o.state.panInProgress&&n(Ft(t,o.ref.current),"mouse",t))},o.handleClick=function(t){var e=W(t),n=o.props,r=n.onClick,i=n.onDoubleClick;o.panHappened||o.dragHappened||(o.clicked&&void 0!==i?(i(e,t),o.clicked=!1):void 0!==r&&(r(e,t),o.clicked=!0,setTimeout((function(){o.clicked&&(o.clicked=!1)}),400)))},o.handleRightClick=function(t){t.stopPropagation(),t.preventDefault();var e=o.props,n=e.onContextMenu,i=e.onPanEnd,a=W(t,o.ref.current.getBoundingClientRect());if(void 0!==o.state.panStart){var s=o.state.panStart,c=s.panStartXScale,u=(0,r.Z)(s.panOrigin,2),l=u[0],f=u[1],h=s.chartsToPan;o.panHappened&&void 0!==i&&i(a,c,{dx:l,dy:f},h,t),Ge(k(o.ref.current)).on(D,null).on(O,null),o.setState({panInProgress:!1,panStart:void 0})}void 0!==n&&n(a,t)},o.handleDrag=function(t){var e=o.props.onDrag;if(void 0!==e){o.dragHappened=!0;var n=o.state.dragStartPosition;if(void 0!==n)e({startPos:n,mouseXY:Ft(t,o.ref.current)},t)}},o.handleDragEnd=function(t){var e=Ft(t,o.ref.current);if(Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null),o.dragHappened){var n=o.props.onDragComplete;void 0!==n&&n({mouseXY:e},t)}o.setState({dragInProgress:!1}),o.mouseInteraction=!0},o.canPan=function(){var t=o.props.getAllPanConditions,e=o.props.pan,n=t().reduce((function(t,e){return{draggable:t.draggable||e.draggable,panEnabled:t.panEnabled&&e.panEnabled}}),{draggable:!1,panEnabled:e});return{panEnabled:n.panEnabled,somethingSelected:n.draggable}},o.handleMouseDown=function(t){if(0===t.button){var e=o.props,n=e.xScale,r=e.chartConfig,i=e.onMouseDown;if(o.panHappened=!1,o.dragHappened=!1,o.focus=!0,!o.state.panInProgress&&o.mouseInteraction){var a=W(t),s=so(r,a),c=o.canPan(),u=c.panEnabled,l=c.somethingSelected,f=u&&!l;if(f)o.setState({panInProgress:f,panStart:{panStartXScale:n,panOrigin:a,chartsToPan:s}}),Ge(k(o.ref.current)).on(D,o.handlePan).on(O,o.handlePanEnd);else if(l){o.setState({panInProgress:!1,dragInProgress:!0,panStart:void 0,dragStartPosition:a});var h=o.props.onDragStart;void 0!==h&&h({startPos:a},t),Ge(k(o.ref.current)).on(D,o.handleDrag).on(O,o.handleDragEnd)}void 0!==i&&i(a,s,t)}t.preventDefault()}},o.shouldPan=function(){var t=o.props,e=t.pan,n=t.onPan;return e&&n&&void 0!==o.state.panStart},o.handlePan=function(t){if(o.shouldPan()&&void 0!==o.state.panStart){o.panHappened=!0;var e,n,r,i=o.state.panStart,a=i.panStartXScale,s=i.panOrigin,c=i.chartsToPan;o.mouseInteraction?(r=Ft(t,o.ref.current),o.lastNewPos=r,e=r[0]-s[0],n=r[1]-s[1]):(r=lo(t,o.ref.current)[0],o.lastNewPos=r,e=s[0]-r[0],n=s[1]-r[1]),o.dx=e,o.dy=n;var u=o.props.onPan;void 0!==u&&u(r,a,{dx:e,dy:n},c,t)}},o.handlePanEnd=function(t){var e=o.props,n=e.pan,r=e.onPanEnd;if(void 0!==o.state.panStart){var i=o.state.panStart,a=i.panStartXScale,s=i.chartsToPan;if(Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null).on(A,null).on(E,null),o.panHappened&&n&&r){var c=g(o),u=c.dx,l=void 0===u?0:u,f=c.dy,h=void 0===f?0:f;delete o.dx,delete o.dy,void 0!==o.lastNewPos&&r(o.lastNewPos,a,{dx:l,dy:h},s,t)}o.setState({panInProgress:!1,panStart:void 0})}},o.handleTouchMove=function(t){var e=o.props.onMouseMove;void 0!==e&&e(F(T(t.touches[0]),t),"touch",t)},o.handleTouchStart=function(t){o.mouseInteraction=!1;var e=o.props,n=e.pan,i=e.chartConfig,a=e.onMouseMove,s=e.xScale,c=e.onPanEnd;if(1===t.touches.length){o.panHappened=!1;var u=F(T(t.touches[0]),t);if(void 0!==a&&a(u,"touch",t),n){var l=so(i,u);o.setState({panInProgress:!0,panStart:{panStartXScale:s,panOrigin:u,chartsToPan:l}}),Ge(k(o.ref.current)).on(A,o.handlePan,!1).on(E,o.handlePanEnd,!1)}}else if(2===t.touches.length){var f=o.state,h=f.panInProgress,p=f.panStart;if(h&&n&&c&&void 0!==p){var d=p.panStartXScale,v=(0,r.Z)(p.panOrigin,2),g=v[0],m=v[1],y=p.chartsToPan;Ge(k(o.ref.current)).on(D,o.mouseInside?o.handleMouseMove:null).on(O,null).on(A,o.handlePinchZoom,!1).on(E,o.handlePinchZoomEnd,!1);var b=F(T(t.touches[0]),t),x=F(T(t.touches[1]),t);o.panHappened&&n&&c&&void 0!==o.lastNewPos&&c(o.lastNewPos,d,{dx:g,dy:m},y,t),o.setState({panInProgress:!1,pinchZoomStart:{xScale:s,touch1Pos:b,touch2Pos:x,range:s.range(),chartsToPan:y}})}}},o.handlePinchZoom=function(t){var e=o.state.pinchZoomStart;if(void 0!==e){var n=o.props,i=n.xScale,a=n.zoom,s=n.onPinchZoom;if(a&&void 0!==s){var c=(0,r.Z)(lo(o.ref.current),2),u=c[0],l=c[1];e.chartsToPan;s(fo(e,["chartsToPan"]),{touch1Pos:u,touch2Pos:l,xScale:i},t)}}},o.handlePinchZoomEnd=function(t){Ge(k(o.ref.current)).on(A,null).on(E,null);var e=o.state.pinchZoomStart;if(void 0!==e){e.chartsToPan;var n=fo(e,["chartsToPan"]),r=o.props,i=r.zoom,a=r.onPinchZoomEnd;i&&a&&a(n,t),o.setState({pinchZoomStart:void 0})}},o.setCursorClass=function(t){t!==o.state.cursorOverrideClass&&o.setState({cursorOverrideClass:t})},o.focus=t.focus,o.state={panInProgress:!1},o}return f(n,[{key:"componentDidMount",value:function(){var t=this.props.disableInteraction,e=this.ref.current;null!==e&&(t||(Ge(e).on(C,this.handleEnter).on(M,this.handleLeave),e.addEventListener("wheel",this.handleWheel,{passive:!1})))}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"componentWillUnmount",value:function(){var t=this.props.disableInteraction,e=this.ref.current;null!==e&&(t||(Ge(e).on(C,null).on(M,null),Ge(k(e)).on(D,null),e.removeEventListener("wheel",this.handleWheel,{passive:!1})))}},{key:"queuePanEnd",value:function(t){var e=this;void 0!==this.panEndTimeout&&window.clearTimeout(this.panEndTimeout),this.panEndTimeout=window.setTimeout((function(){e.handlePanEnd(t)}),100)}},{key:"cancelDrag",value:function(){Ge(k(this.ref.current)).on(D,this.mouseInside?this.handleMouseMove:null).on(O,null),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width,r=t.disableInteraction,o=t.useCrossHairStyleCursor,i=r?void 0:void 0!==this.state.cursorOverrideClass?this.state.cursorOverrideClass:o?this.state.panInProgress?"react-financial-charts-grabbing-cursor":"react-financial-charts-crosshair-cursor":void 0,a=r||{onMouseDown:this.handleMouseDown,onClick:this.handleClick,onContextMenu:this.handleRightClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove};return c.createElement("rect",Object.assign({ref:this.ref,className:i,width:n,height:e,style:{opacity:0}},a))}}]),n}(c.Component);ho.defaultProps={mouseMove:!1,zoom:!1,pan:!1,panSpeedMultiplier:1,focus:!1,disableInteraction:!1};var po=function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).bgRef=c.createRef(),t.axesRef=c.createRef(),t.mouseRef=c.createRef(),t}return f(n,[{key:"getCanvasContexts",value:function(){var t,e,n,r,o,i;return{bg:null!==(e=null===(t=this.bgRef.current)||void 0===t?void 0:t.getContext("2d"))&&void 0!==e?e:void 0,axes:null!==(r=null===(n=this.axesRef.current)||void 0===n?void 0:n.getContext("2d"))&&void 0!==r?r:void 0,mouseCoord:null!==(i=null===(o=this.mouseRef.current)||void 0===o?void 0:o.getContext("2d"))&&void 0!==i?i:void 0}}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.ratio,r=t.style,o=t.width,i=o*n,a=e*n,s={position:"absolute",width:o,height:e};return c.createElement("div",{style:Object.assign(Object.assign({},r),{position:"absolute"})},c.createElement("canvas",{ref:this.bgRef,width:i,height:a,style:s}),c.createElement("canvas",{ref:this.axesRef,width:i,height:a,style:s}),c.createElement("canvas",{ref:this.mouseRef,width:i,height:a,style:s}))}}]),n}(c.PureComponent);function vo(t,e,n,o){var i=t.lastItem,a=t.lastItemX,s=e(i),c=(0,r.Z)(n.range(),2),u=c[0];return(c[1]-u)/(a.valueOf()-u)*(s.valueOf()-o.valueOf())+o.valueOf()}function go(t,e,n,r){var o=function(t,e){return Math.max(1,Math.ceil(t*e))}(t,r),i=mo(t,n);return e>=o&&e4&&void 0!==arguments[4]?arguments[4]:{},l=u.currentPlotData,f=u.currentDomain,h=u.fallbackStart,p=u.fallbackEnd,d=u.ignoreThresholds,v=void 0!==d&&d;if(t)return{plotData:i,domain:a};var g=N(a),m=R(a),y=a,b=bo(i,g,m,s);1===b.length&&void 0!==h&&(y=[g=h,m=vo(p,s,c,g)],b=bo(i,g,m,s)),"function"===typeof e?y=e(y,[s(N(i)),s(R(i))]):("left"!==e&&"both"!==e&&!0!==e||(y=[yn([g,s(N(i))]),y[1]]),"right"!==e&&"both"!==e&&!0!==e||(y=[y[0],$([m,s(R(i))])])),y!==a&&(b=bo(i,y[0],y[1],s));var x,w,_=y,P=c.copy().domain(_),S=Math.floor(P(s(R(b)))-P(s(N(b))));o&&S<0&&(S*=-1);var k=R(P.range())-N(P.range());if(v&&b.length>1||go(S,b.length,n,r))x=b,w=_;else if(k>mo(S,n)&&I(p)){x=b;var C=vo(p,s,c,N(_));w=[N(_),C]}else x=null!==l&&void 0!==l?l:b.slice(b.length-yo(S,n)),w=null!==f&&void 0!==f?f:[s(N(x)),s(R(x))];return{plotData:x,domain:w}}}}(n||z(e.invert),r,o,i,a)}var wo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o3&&void 0!==arguments[3]?arguments[3]:1;if(t.rangeRoundPoints){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints([0,e.width],n)}else if(t.padding){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.range([0,e.width]),t.padding(n/2)}else{var o=isNaN(n)?n:{left:n,right:n},i=o.left,a=o.right;r>0?t.range([i,e.width-a]):t.range([e.width-a,i])}return t},Oo=function(t){var e=t.touch1Pos,n=t.touch2Pos;return{topLeft:[Math.min(e[0],n[0]),Math.min(e[1],n[1])],bottomRight:[Math.max(e[0],n[0]),Math.max(e[1],n[1])]}},Ao=function(t,e,n){return!isNaN(t(e(N(n))))&&I(t.invert)},Eo=function(t){p(n,t);var e=y(n);function n(t){var r;u(this,n),(r=e.call(this,t)).canvasContainerRef=c.createRef(),r.eventCaptureRef=c.createRef(),r.lastSubscriptionId=0,r.mutableState={},r.panInProgress=!1,r.subscriptions=[],r.getMutableState=function(){return r.mutableState},r.getDataInfo=function(){return Object.assign(Object.assign({},r.state),{fullData:r.fullData})},r.getCanvasContexts=function(){var t;return null===(t=r.canvasContainerRef.current)||void 0===t?void 0:t.getCanvasContexts()},r.generateSubscriptionId=function(){return r.lastSubscriptionId++,r.lastSubscriptionId},r.subscribe=function(t,e){var n=e.getPanConditions,o=void 0===n?S({draggable:!1,panEnabled:!0}):n;r.subscriptions=r.subscriptions.concat(Object.assign(Object.assign({id:t},e),{getPanConditions:o}))},r.unsubscribe=function(t){r.subscriptions=r.subscriptions.filter((function(e){return e.id!==t}))},r.getAllPanConditions=function(){return r.subscriptions.map((function(t){return t.getPanConditions()}))},r.setCursorClass=function(t){var e;null===(e=r.eventCaptureRef.current)||void 0===e||e.setCursorClass(t)},r.amIOnTop=function(t){var e=r.subscriptions.filter((function(t){return t.getPanConditions().draggable}));return e.length>0&&R(e).id===t},r.handleContextMenu=function(t,e){var n=r.state,o=n.xAccessor,i=n.chartConfig,a=n.plotData,s=n.xScale,c=so(i,t),u=uo(s,o,t,a);r.triggerEvent("contextmenu",{mouseXY:t,currentItem:u,currentCharts:c},e)},r.calculateStateForDomain=function(t){var e=r.state,o=e.xAccessor,i=e.displayXAccessor,a=e.xScale,s=e.chartConfig,c=e.plotData,u=r.state.filterData,l=g(r).fullData,f=r.props.postCalculator,h=void 0===f?n.defaultProps.postCalculator:f,p=u(l,t,o,a,{currentPlotData:c,currentDomain:a.domain()}),d=p.plotData,v=p.domain,m=h(d),y=a.copy().domain(v),b=co(s,{plotData:m,xAccessor:o,displayXAccessor:i,fullData:l},y.domain());return{xScale:y,plotData:m,chartConfig:b}},r.pinchZoomHelper=function(t,e){var o=t.xScale,i=r.state,a=i.xScale,s=i.chartConfig,c=i.plotData,u=i.xAccessor,l=i.displayXAccessor,f=i.filterData,h=g(r).fullData,p=r.props.postCalculator,d=void 0===p?n.defaultProps.postCalculator:p,v=Oo(t),m=v.topLeft,y=v.bottomRight,b=Oo(e),x=b.topLeft,w=b.bottomRight,_=o.range()[1],P=Math.round(-(y[0]*x[0]-m[0]*w[0])/(m[0]-y[0])),S=Math.round(_+((_-y[0])*(_-x[0])-(_-m[0])*(_-w[0]))/(_-m[0]-(_-y[0]))),k=f(h,[Math.round(-P*m[0]/(-P+x[0])),Math.round(_-(S-_)*(_-m[0])/(S+(_-x[0])))].map(o.invert),u,o,{currentPlotData:c,currentDomain:a.domain()}),C=k.plotData,M=k.domain,D=d(C),O=a.copy().domain(M),A=e.touch1Pos;return{chartConfig:co(s,{plotData:D,xAccessor:u,displayXAccessor:l,fullData:h},O.domain()),xScale:O,plotData:D,mouseXY:A,currentItem:uo(O,u,A,D)}},r.handlePinchZoom=function(t,e,n){if(!r.waitingForPinchZoomAnimationFrame){r.waitingForPinchZoomAnimationFrame=!0;var o=r.pinchZoomHelper(t,e);r.triggerEvent("pinchzoom",o,n),r.finalPinch=e,requestAnimationFrame((function(){r.clearBothCanvas(),r.draw({trigger:"pinchzoom"}),r.waitingForPinchZoomAnimationFrame=!1}))}},r.handlePinchZoomEnd=function(t,e){var o=r.state.xAccessor,i=void 0===o?n.defaultProps.xAccessor:o;if(r.finalPinch){var a=r.pinchZoomHelper(t,r.finalPinch),s=a.xScale;r.triggerEvent("pinchzoom",a,e),r.finalPinch=void 0,r.clearThreeCanvas();var c=g(r).fullData,u=N(c),l=N(s.domain()),f=i(u),h=R(c),p=R(s.domain()),d=i(h),v=r.props,m=v.onLoadAfter,y=v.onLoadBefore;r.setState(a,(function(){l0?1*f:1/f,b=s.range().map((function(t){return m+(t-m)*y})).map((function(t){return s.invert(t)})),x=r.calculateStateForDomain(b),w=x.xScale,_=x.plotData,P=x.chartConfig,S=uo(w,a,e,_),k=so(P,e);r.clearThreeCanvas();var C=N(d),M=N(w.domain()),D=a(C),O=R(d),A=R(w.domain()),E=a(O);r.mutableState={mouseXY:e,currentItem:S,currentCharts:k},r.triggerEvent("zoom",{xScale:w,plotData:_,chartConfig:P,mouseXY:e,currentCharts:k,currentItem:S,show:!0},o);var T=r.props,j=T.onLoadAfter,I=T.onLoadBefore;r.setState({xScale:w,plotData:_,chartConfig:P},(function(){M=p){var k=(0,r.Z)(e.range(),2),C=k[0],M=k[1],D=(0,r.Z)(S.range(),2),O=D[0],A=(D[1]-O)/(M-C)*(g.valueOf()-v.valueOf()),E=f(s,[w?g.valueOf()-A:v,g],u,S,{fallbackStart:v,fallbackEnd:{lastItem:h,lastItemX:e(p)}});a=E.plotData,S.domain(E.domain)}else if(o&&g=l,i)}else e=Co(t),this.mutableState={};var v=e.fullData,g=wo(e,["fullData"]);this.panInProgress||(this.clearThreeCanvas(),this.setState(g)),this.fullData=v}},{key:"shouldComponentUpdate",value:function(){return!this.panInProgress}},{key:"render",value:function(){var t=this.props,e=t.disableInteraction,r=t.disablePan,o=t.disableZoom,i=t.useCrossHairStyleCursor,a=t.onClick,s=t.onDoubleClick,u=t.height,l=t.width,f=t.margin,h=void 0===f?n.defaultProps.margin:f,p=t.className,d=t.zIndex,v=void 0===d?n.defaultProps.zIndex:d,g=t.defaultFocus,m=t.ratio,y=t.mouseMoveEvent,b=this.state,x=b.plotData,w=b.xScale,_=b.xAccessor,P=b.chartConfig,S=Po(this.props),k=Ao(w,_,x),C=i&&k,M=c.createElement("style",{type:"text/css"},"\n\t.react-financial-charts-grabbing-cursor {\n\t\tpointer-events: all;\n\t\tcursor: -moz-grabbing;\n\t\tcursor: -webkit-grabbing;\n\t\tcursor: grabbing;\n\t}\n\t.react-financial-charts-crosshair-cursor {\n\t\tpointer-events: all;\n\t\tcursor: crosshair;\n\t}\n\t.react-financial-charts-tooltip-hover {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-avoid-interaction {\n\t\tpointer-events: none;\n\t}\n\t.react-financial-charts-enable-interaction {\n\t\tpointer-events: all;\n\t}\n\t.react-financial-charts-tooltip {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-default-cursor {\n\t\tcursor: default;\n\t}\n\t.react-financial-charts-move-cursor {\n\t\tcursor: move;\n\t}\n\t.react-financial-charts-pointer-cursor {\n\t\tcursor: pointer;\n\t}\n\t.react-financial-charts-ns-resize-cursor {\n\t\tcursor: ns-resize;\n\t}\n\t.react-financial-charts-ew-resize-cursor {\n\t\tcursor: ew-resize;\n\t}");return c.createElement("div",{style:{position:"relative",width:l,height:u},className:p,onClick:a,onDoubleClick:s},c.createElement(po,{ref:this.canvasContainerRef,ratio:m,width:l,height:u,style:{height:u,zIndex:v,width:l}}),c.createElement("svg",{className:p,width:l,height:u,style:{position:"absolute",zIndex:v+5}},M,c.createElement("defs",null,c.createElement("clipPath",{id:"chart-area-clip"},c.createElement("rect",{x:"0",y:"0",width:S.width,height:S.height})),P.map((function(t,e){return c.createElement("clipPath",{key:e,id:"chart-area-clip-".concat(t.id)},c.createElement("rect",{x:"0",y:"0",width:t.width,height:t.height}))}))),c.createElement("g",{transform:"translate(".concat(h.left+.5,", ").concat(h.top+.5,")")},c.createElement(ho,{ref:this.eventCaptureRef,useCrossHairStyleCursor:C,mouseMove:y&&k,zoom:!o&&k,pan:!r&&k,width:S.width,height:S.height,chartConfig:P,xScale:w,xAccessor:_,focus:g,disableInteraction:e,getAllPanConditions:this.getAllPanConditions,onContextMenu:this.handleContextMenu,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onDragStart:this.handleDragStart,onDrag:this.handleDrag,onDragComplete:this.handleDragEnd,onZoom:this.handleZoom,onPinchZoom:this.handlePinchZoom,onPinchZoomEnd:this.handlePinchZoomEnd,onPan:this.handlePan,onPanEnd:this.handlePanEnd}),c.createElement("g",{className:"react-financial-charts-avoid-interaction"},this.props.children))))}}]),n}(c.Component);Eo.defaultProps={clamp:!1,className:"react-financial-charts",defaultFocus:!0,disablePan:!1,disableInteraction:!1,disableZoom:!1,flipXScale:!1,maintainPointsPerPixelOnResize:!0,margin:{top:0,right:40,bottom:40,left:0},minPointsPerPxThreshold:.01,mouseMoveEvent:!0,postCalculator:_,padding:0,pointsPerPxThreshold:2,useCrossHairStyleCursor:!0,xAccessor:_,xExtents:[$,yn],zIndex:1,zoomAnchor:function(t){var e=t.xScale,n=t.xAccessor;return n(uo(e,n,t.mouseXY,t.plotData))},zoomMultiplier:1.1},Eo.childContextTypes={plotData:b.array,fullData:b.array,chartConfig:b.arrayOf(b.shape({id:b.oneOfType([b.number,b.string]).isRequired,origin:b.arrayOf(b.number).isRequired,padding:b.oneOfType([b.number,b.shape({top:b.number,bottom:b.number})]),yExtents:b.arrayOf(b.func),yExtentsProvider:b.func,yScale:b.func.isRequired,mouseCoordinates:b.shape({at:b.string,format:b.func}),width:b.number.isRequired,height:b.number.isRequired})).isRequired,xScale:b.func.isRequired,xAccessor:b.func.isRequired,displayXAccessor:b.func.isRequired,width:b.number.isRequired,height:b.number.isRequired,margin:b.object.isRequired,ratio:b.number.isRequired,getCanvasContexts:b.func,xAxisZoom:b.func,yAxisZoom:b.func,amIOnTop:b.func,redraw:b.func,subscribe:b.func,unsubscribe:b.func,setCursorClass:b.func,generateSubscriptionId:b.func,getMutableState:b.func};const To=Math.PI,No=2*To,jo=1e-6,Ro=No-jo;function Io(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function zo(){return new Io}Io.prototype=zo.prototype={constructor:Io,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,s=n-t,c=r-e,u=i-t,l=a-e,f=u*u+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>jo)if(Math.abs(l*s-c*u)>jo&&o){var h=n-i,p=r-a,d=s*s+c*c,v=h*h+p*p,g=Math.sqrt(d),m=Math.sqrt(f),y=o*Math.tan((To-Math.acos((d+f-v)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>jo&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+o+","+o+",0,0,"+ +(l*h>u*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,o,i){t=+t,e=+e,i=!!i;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+a,u=e+s,l=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>jo||Math.abs(this._y1-u)>jo)&&(this._+="L"+c+","+u),n&&(f<0&&(f=f%No+No),f>Ro?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):f>jo&&(this._+="A"+n+","+n+",0,"+ +(f>=To)+","+l+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Fo=zo;Array.prototype.slice;function Wo(t){return function(){return t}}function Lo(t){this._context=t}function Xo(t){return new Lo(t)}function qo(t){return t[0]}function Ho(t){return t[1]}function Zo(t,e){var n=Wo(!0),r=null,o=Xo,i=null;function a(a){var s,c,u,l=(a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}(a)).length,f=!1;for(null==r&&(i=o(u=Fo())),s=0;s<=l;++s)!(s=N-x&&b<=N+x},t}return f(n,[{key:"render",value:function(){var t=this.props,e=t.highlightOnHover,n=t.onClick,r=t.onContextMenu,o=t.onDoubleClick,i=t.onHover,a=t.onUnHover,s=t.strokeDasharray,u=e||i||a?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:Z}:{drawOn:["pan"],canvasToDraw:H},l=U(s);return c.createElement(B,Object.assign({canvasDraw:this.drawOnCanvas(l),onClickWhenHover:n,onDoubleClickWhenHover:o,onContextMenuWhenHover:r,onHover:i,onUnHover:a},u))}}]),n}(c.Component);Yo.defaultProps={connectNulls:!1,defined:function(t){return void 0!==t&&!isNaN(t)},hoverStrokeWidth:4,hoverTolerance:6,highlightOnHover:!1,strokeDasharray:"Solid",strokeStyle:"#2196f3",strokeWidth:1};var Bo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=t&&a.setAttribute("nonce",t),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";var h=l.createElement("div");h.className="expand-trigger",h.appendChild(l.createElement("div"));var p=l.createElement("div");p.className="contract-trigger",i.__resizeTriggers__.appendChild(h),i.__resizeTriggers__.appendChild(p),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(t,e){if(c)t.detachEvent("onresize",e);else if(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),!t.__resizeListeners__.length){t.removeEventListener("scroll",s,!0),t.__resizeTriggers__.__animationListener__&&(t.__resizeTriggers__.removeEventListener(r,t.__resizeTriggers__.__animationListener__),t.__resizeTriggers__.__animationListener__=null);try{t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__)}catch(n){}}}}}null==si||null==ci?(ri=ii,oi=function(t){return ai(t,20)}):(ri=function(t){var e=ei(t,2),n=e[0],r=e[1];si(n),ii(r)},oi=function(t){var e=ci((function(){ii(n),t()})),n=ai((function(){si(e),t()}),20);return[e,n]});var li=function(t){function e(){var t,n,r;Ko(this,e);for(var o=arguments.length,i=Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:2;return t.toLocaleString(void 0,{minimumFractionDigits:e,maximumFractionDigits:e})},yi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return s(Array(t).keys()).map((function(t){return e+t*n}))},bi=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:10;return t>=n?yi(t+1,e):yi(n+1,e,t/n)}(P-_,_).map((function(t){return m.reduce((function(e,n){var r,o=g[n];return e[n]=xi(o.optionLegs,t,a).total-((null===(r=o.value)||void 0===r?void 0:r.total)||0),e}),{x:t})})),k=[_,P],C=Jr([0,P-_],[_,P]),M=function(t){return function(e){return e[t]}},D=m.map((function(t){return c.createElement(Yo,{key:"series-".concat(t),strokeStyle:g[t].color,yAccessor:M(t)})})),O=m.map((function(t){return c.createElement(hn,{key:"coords-".concat(t),fillStyle:g[t].color,strokeStyle:g[t].color,yAccessor:M(t)})})),A=m.map((function(t){return c.createElement(pi,{key:"edges-".concat(t),at:"right",orient:"right",displayFormat:mi,yAccessor:M(t)})})),E=m.map((function(t,e){return c.createElement(Go,{key:"tooltips-".concat(t),yAccessor:M(t),yLabel:t,yDisplayFormat:mi,labelFill:g[t].color,origin:[8,16*(e+1)]})}));return c.createElement(Eo,Object.assign({},h,{data:S,margin:{left:0,right:50,top:0,bottom:30},xScale:C,xAccessor:function(t){return t.x},xExtents:k}),c.createElement(to,{id:1,yExtents:function(t){var e,n,r=(e=Math).min.apply(e,s(m.map((function(e){return t[e]})))),o=(n=Math).max.apply(n,s(m.map((function(e){return t[e]}))));return[r-Math.abs(.2*r),o+Math.abs(.2*o)]}},c.createElement(cn,null),c.createElement(ln,{ticks:5}),c.createElement(gn,{at:"bottom",orient:"bottom",displayFormat:mi}),f&&c.createElement(B,{clip:!1,canvasDraw:function(t,e){var n,r=e.currentItem,o=!!r&&r,i=o.x,s=bi(o,["x"]);if(i!==d){v(i);var c=null===(n=Object.keys(s))||void 0===n?void 0:n.reduce((function(t,e){return g[e]&&(t[e]=xi(g[e].optionLegs,i,a)),t}),{});f&&f(i,y,c)}},drawOn:["mousemove"]}),D,O,A,E,l))},function(t){p(n,t);var e=y(n);function n(){var t;return u(this,n),(t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)))).ref=c.createRef(),t}return f(n,[{key:"componentDidMount",value:function(){var t,e,n,r,o,i=this.ref.current;if(null!==i){var a=i.getContext("2d"),s=window.devicePixelRatio,c=null!==(o=null!==(r=null!==(n=null!==(e=null!==(t=a.webkitBackingStorePixelRatio)&&void 0!==t?t:a.mozBackingStorePixelRatio)&&void 0!==e?e:a.msBackingStorePixelRatio)&&void 0!==n?n:a.oBackingStorePixelRatio)&&void 0!==r?r:a.backingStorePixelRatio)&&void 0!==o?o:1;this.setState({ratio:s/c})}else this.setState({ratio:1})}},{key:"render",value:function(){var t=this.state;return null!==t?c.createElement(vi,Object.assign({},this.props,{ratio:t.ratio})):c.createElement("canvas",{ref:this.ref})}}]),n}(c.Component))),_i=wi},2703:function(t,e,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(t,e,n){t.exports=n(2703)()},414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4758:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:h(t)?2:p(t)?3:0}function c(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function u(t,e){return 2===s(t)?t.get(e):t[e]}function l(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?(t.delete(e),t.add(n)):t[e]=n}function f(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){return L&&t instanceof Map}function p(t){return X&&t instanceof Set}function d(t){return t.o||t.t}function v(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=V(t);delete e[Y];for(var n=U(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=m),Object.freeze(t),e&&a(t,(function(t,e){return g(e,!0)}),!0)),t}function m(){r(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(t){var e=$[t];return e||r(18,t),e}function x(){return F}function w(t,e){e&&(b("Patches"),t.u=[],t.s=[],t.v=e)}function _(t){P(t),t.p.forEach(k),t.p=null}function P(t){t===F&&(F=t.l)}function S(t){return F={p:[],l:F,h:t,m:!0,_:0}}function k(t){var e=t[Y];0===e.i||1===e.i?e.j():e.O=!0}function C(t,e){e._=e.p.length;var n=e.p[0],o=void 0!==t&&t!==n;return e.h.g||b("ES5").S(e,t,o),o?(n[Y].P&&(_(e),r(4)),i(t)&&(t=M(e,t),e.l||O(e,t)),e.u&&b("Patches").M(n[Y].t,t,e.u,e.s)):t=M(e,n,[]),_(e),e.u&&e.v(e.u,e.s),t!==H?t:void 0}function M(t,e,n){if(y(e))return e;var r=e[Y];if(!r)return a(e,(function(o,i){return D(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return O(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o;a(3===r.i?new Set(o):o,(function(e,i){return D(t,r,o,e,i,n)})),O(t,o,!1),n&&t.u&&b("Patches").R(r,n,t.u,t.s)}return r.o}function D(t,e,n,r,a,s){if(o(a)){var u=M(t,a,s&&e&&3!==e.i&&!c(e.D,r)?s.concat(r):void 0);if(l(n,r,u),!o(u))return;t.m=!1}if(i(a)&&!y(a)){if(!t.h.F&&t._<1)return;M(t,a),e&&e.A.l||O(t,a)}}function O(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&g(e,n)}function A(t,e){var n=t[Y];return(n?d(n):t)[e]}function E(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function T(t){t.P||(t.P=!0,t.l&&T(t.l))}function N(t){t.o||(t.o=v(t.t))}function j(t,e,n){var r=h(e)?b("MapSet").N(e,n):p(e)?b("MapSet").T(e,n):t.g?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:x(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},o=r,i=G;n&&(o=[r],i=K);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,n):b("ES5").J(e,n);return(n?n.A:x()).p.push(r),r}function R(t){return o(t)||r(22,t),function t(e){if(!i(e))return e;var n,r=e[Y],o=s(e);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=I(e,o),r.I=!1}else n=I(e,o);return a(n,(function(e,o){r&&u(r.t,e)===o||l(n,e,t(o))})),3===o?new Set(n):n}(t)}function I(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return v(t)}n.d(e,{x:function(){return rt}});var z,F,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),L="undefined"!=typeof Map,X="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),Z=W?Symbol.for("immer-draftable"):"__$immer_draftable",Y=W?Symbol.for("immer-state"):"__$immer_state",B=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),U="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(t){var e={};return U(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},$={},G={get:function(t,e){if(e===Y)return t;var n=d(t);if(!c(n,e))return function(t,e,n){var r,o=E(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!i(r)?r:r===A(t.t,e)?(N(t),t.o[e]=j(t.A.h,r,t)):r},has:function(t,e){return e in d(t)},ownKeys:function(t){return Reflect.ownKeys(d(t))},set:function(t,e,n){var r=E(d(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=A(d(t),e),i=null==o?void 0:o[Y];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(f(n,o)&&(void 0!==n||c(t.t,e)))return!0;N(t),T(t)}return t.o[e]===n&&"number"!=typeof n&&(void 0!==n||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==A(t.t,e)||e in t.t?(t.D[e]=!1,N(t),T(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=d(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},K={};a(G,(function(t,e){K[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),K.deleteProperty=function(t,e){return K.set.call(this,t,e,void 0)},K.set=function(t,e,n){return G.set.call(this,t[0],e,n,t[0])};var J=function(){function t(t){var e=this;this.g=q,this.F=!0,this.produce=function(t,n,o){if("function"==typeof t&&"function"!=typeof n){var a=n;n=t;var s=e;return function(t){var e=this;void 0===t&&(t=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=b("Patches").$;return o(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Q=new J,tt=Q.produce,et=(Q.produceWithPatches.bind(Q),Q.setAutoFreeze.bind(Q),Q.setUseProxies.bind(Q),Q.applyPatches.bind(Q),Q.createDraft.bind(Q),Q.finishDraft.bind(Q),tt),nt=n(7294);function rt(t){var e=(0,nt.useState)((function(){return g("function"==typeof t?t():t,!0)})),n=e[1];return[e[0],(0,nt.useCallback)((function(t){n("function"==typeof t?et(t):g(t))}),[])]}},943:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nBack Spread with Calls | OptionCharts.net \ No newline at end of file +Back Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/back-spread-with-puts.html b/back-spread-with-puts.html index 59f51af..55ede38 100644 --- a/back-spread-with-puts.html +++ b/back-spread-with-puts.html @@ -1 +1 @@ -Back Spread with Puts | OptionCharts.net \ No newline at end of file +Back Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/broken-wing-butterfly-with-calls.html b/broken-wing-butterfly-with-calls.html index 0382a30..79ae190 100644 --- a/broken-wing-butterfly-with-calls.html +++ b/broken-wing-butterfly-with-calls.html @@ -1 +1 @@ -Broken Wing Butterfly with Calls | OptionCharts.net \ No newline at end of file +Broken Wing Butterfly with Calls | OptionCharts.net \ No newline at end of file diff --git a/broken-wing-butterfly-with-puts.html b/broken-wing-butterfly-with-puts.html index 93302a1..32e207c 100644 --- a/broken-wing-butterfly-with-puts.html +++ b/broken-wing-butterfly-with-puts.html @@ -1 +1 @@ -Broken Wing Butterfly with Puts | OptionCharts.net \ No newline at end of file +Broken Wing Butterfly with Puts | OptionCharts.net \ No newline at end of file diff --git a/butterfly-spread-with-calls.html b/butterfly-spread-with-calls.html index f29f549..d41b3ec 100644 --- a/butterfly-spread-with-calls.html +++ b/butterfly-spread-with-calls.html @@ -1 +1 @@ -Butterfly Spread with Calls | OptionCharts.net \ No newline at end of file +Butterfly Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/butterfly-spread-with-puts.html b/butterfly-spread-with-puts.html index 5541bb0..7fae33a 100644 --- a/butterfly-spread-with-puts.html +++ b/butterfly-spread-with-puts.html @@ -1 +1 @@ -Butterfly Spread with Puts | OptionCharts.net \ No newline at end of file +Butterfly Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/christmas-tree-spread-with-calls.html b/christmas-tree-spread-with-calls.html index b2d2511..afd560f 100644 --- a/christmas-tree-spread-with-calls.html +++ b/christmas-tree-spread-with-calls.html @@ -1 +1 @@ -Christmas Tree Spread with Calls | OptionCharts.net \ No newline at end of file +Christmas Tree Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/christmas-tree-spread-with-puts.html b/christmas-tree-spread-with-puts.html index b0d2bdd..52f0020 100644 --- a/christmas-tree-spread-with-puts.html +++ b/christmas-tree-spread-with-puts.html @@ -1 +1 @@ -Christmas Tree Spread with Puts | OptionCharts.net \ No newline at end of file +Christmas Tree Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/diagonal-spread-with-calls.html b/diagonal-spread-with-calls.html index 86e830b..af849ea 100644 --- a/diagonal-spread-with-calls.html +++ b/diagonal-spread-with-calls.html @@ -1 +1 @@ -Diagonal Spread with Calls | OptionCharts.net \ No newline at end of file +Diagonal Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/diagonal-spread-with-puts.html b/diagonal-spread-with-puts.html index ad94a73..420e704 100644 --- a/diagonal-spread-with-puts.html +++ b/diagonal-spread-with-puts.html @@ -1 +1 @@ -Diagonal Spread with Puts | OptionCharts.net \ No newline at end of file +Diagonal Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/front-spread-with-calls.html b/front-spread-with-calls.html index cbf1d4c..9d5e224 100644 --- a/front-spread-with-calls.html +++ b/front-spread-with-calls.html @@ -1 +1 @@ -Front Spread with Calls | OptionCharts.net \ No newline at end of file +Front Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/front-spread-with-puts.html b/front-spread-with-puts.html index c50a0f8..281fcd5 100644 --- a/front-spread-with-puts.html +++ b/front-spread-with-puts.html @@ -1 +1 @@ -Front Spread with Puts | OptionCharts.net \ No newline at end of file +Front Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/index.html b/index.html index 2feb29c..b8a6b9b 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Iron Condor | OptionCharts.net \ No newline at end of file +Iron Condor | OptionCharts.net \ No newline at end of file diff --git a/iron-butterfly.html b/iron-butterfly.html index 9329abd..e49c480 100644 --- a/iron-butterfly.html +++ b/iron-butterfly.html @@ -1 +1 @@ -Iron Butterfly | OptionCharts.net \ No newline at end of file +Iron Butterfly | OptionCharts.net \ No newline at end of file diff --git a/iron-condor.html b/iron-condor.html index 50b4142..62c2af0 100644 --- a/iron-condor.html +++ b/iron-condor.html @@ -1 +1 @@ -Iron Condor | OptionCharts.net \ No newline at end of file +Iron Condor | OptionCharts.net \ No newline at end of file diff --git a/long-box-spread.html b/long-box-spread.html index f9510a9..d91a17f 100644 --- a/long-box-spread.html +++ b/long-box-spread.html @@ -1 +1 @@ -Long Box Spread | OptionCharts.net \ No newline at end of file +Long Box Spread | OptionCharts.net \ No newline at end of file diff --git a/long-calendar-spread-with-calls.html b/long-calendar-spread-with-calls.html index 6bf140c..b44ee3b 100644 --- a/long-calendar-spread-with-calls.html +++ b/long-calendar-spread-with-calls.html @@ -1 +1 @@ -Long Calendar Spread with Calls | OptionCharts.net \ No newline at end of file +Long Calendar Spread with Calls | OptionCharts.net \ No newline at end of file diff --git a/long-calendar-spread-with-puts.html b/long-calendar-spread-with-puts.html index 487038c..9448ab6 100644 --- a/long-calendar-spread-with-puts.html +++ b/long-calendar-spread-with-puts.html @@ -1 +1 @@ -Long Calendar Spread with Puts | OptionCharts.net \ No newline at end of file +Long Calendar Spread with Puts | OptionCharts.net \ No newline at end of file diff --git a/long-call-spread.html b/long-call-spread.html index d29fc21..0c48e3a 100644 --- a/long-call-spread.html +++ b/long-call-spread.html @@ -1 +1 @@ -Long Call Spread | OptionCharts.net \ No newline at end of file +Long Call Spread | OptionCharts.net \ No newline at end of file diff --git a/long-call.html b/long-call.html index b952f6f..6275f3f 100644 --- a/long-call.html +++ b/long-call.html @@ -1 +1 @@ -Long Call | OptionCharts.net \ No newline at end of file +Long Call | OptionCharts.net \ No newline at end of file diff --git a/long-jelly-roll.html b/long-jelly-roll.html index ddaac72..84237e7 100644 --- a/long-jelly-roll.html +++ b/long-jelly-roll.html @@ -1 +1 @@ -Long Jelly Roll | OptionCharts.net \ No newline at end of file +Long Jelly Roll | OptionCharts.net \ No newline at end of file diff --git a/long-put-spread.html b/long-put-spread.html index 225ec4f..a4a1ae6 100644 --- a/long-put-spread.html +++ b/long-put-spread.html @@ -1 +1 @@ -Long Put Spread | OptionCharts.net \ No newline at end of file +Long Put Spread | OptionCharts.net \ No newline at end of file diff --git a/long-put.html b/long-put.html index 6de665f..919c742 100644 --- a/long-put.html +++ b/long-put.html @@ -1 +1 @@ -Long Put | OptionCharts.net \ No newline at end of file +Long Put | OptionCharts.net \ No newline at end of file diff --git a/long-straddle.html b/long-straddle.html index 487b103..4e0ee79 100644 --- a/long-straddle.html +++ b/long-straddle.html @@ -1 +1 @@ -Long Straddle | OptionCharts.net \ No newline at end of file +Long Straddle | OptionCharts.net \ No newline at end of file diff --git a/long-strangle.html b/long-strangle.html index 915a885..2330f0e 100644 --- a/long-strangle.html +++ b/long-strangle.html @@ -1 +1 @@ -Long Strangle | OptionCharts.net \ No newline at end of file +Long Strangle | OptionCharts.net \ No newline at end of file diff --git a/poor-mans-covered-call.html b/poor-mans-covered-call.html index 4463c1f..ca4d0fb 100644 --- a/poor-mans-covered-call.html +++ b/poor-mans-covered-call.html @@ -1 +1 @@ -Poor Man's Covered Call | OptionCharts.net \ No newline at end of file +Poor Man's Covered Call | OptionCharts.net \ No newline at end of file diff --git a/risk-reversal.html b/risk-reversal.html index faa66ad..968dbd6 100644 --- a/risk-reversal.html +++ b/risk-reversal.html @@ -1 +1 @@ -Risk Reversal | OptionCharts.net \ No newline at end of file +Risk Reversal | OptionCharts.net \ No newline at end of file diff --git a/short-box-spread.html b/short-box-spread.html index 2cf0f8f..9b40212 100644 --- a/short-box-spread.html +++ b/short-box-spread.html @@ -1 +1 @@ -Short Box Spread | OptionCharts.net \ No newline at end of file +Short Box Spread | OptionCharts.net \ No newline at end of file diff --git a/short-call-spread.html b/short-call-spread.html index 958be16..7ddcd44 100644 --- a/short-call-spread.html +++ b/short-call-spread.html @@ -1 +1 @@ -Short Call Spread | OptionCharts.net \ No newline at end of file +Short Call Spread | OptionCharts.net \ No newline at end of file diff --git a/short-call.html b/short-call.html index 0f197f1..989d1fc 100644 --- a/short-call.html +++ b/short-call.html @@ -1 +1 @@ -Short Call | OptionCharts.net \ No newline at end of file +Short Call | OptionCharts.net \ No newline at end of file diff --git a/short-jelly-roll.html b/short-jelly-roll.html index 47208b0..6abaa13 100644 --- a/short-jelly-roll.html +++ b/short-jelly-roll.html @@ -1 +1 @@ -Short Jelly Roll | OptionCharts.net \ No newline at end of file +Short Jelly Roll | OptionCharts.net \ No newline at end of file diff --git a/short-put-spread.html b/short-put-spread.html index 2936aaa..4abaf4f 100644 --- a/short-put-spread.html +++ b/short-put-spread.html @@ -1 +1 @@ -Short Put Spread | OptionCharts.net \ No newline at end of file +Short Put Spread | OptionCharts.net \ No newline at end of file diff --git a/short-put.html b/short-put.html index 2aa2501..fe819ec 100644 --- a/short-put.html +++ b/short-put.html @@ -1 +1 @@ -Short Put | OptionCharts.net \ No newline at end of file +Short Put | OptionCharts.net \ No newline at end of file diff --git a/short-straddle.html b/short-straddle.html index 369b8c8..2e6b20c 100644 --- a/short-straddle.html +++ b/short-straddle.html @@ -1 +1 @@ -Short Straddle | OptionCharts.net \ No newline at end of file +Short Straddle | OptionCharts.net \ No newline at end of file diff --git a/short-strangle.html b/short-strangle.html index 3e64c4b..2510469 100644 --- a/short-strangle.html +++ b/short-strangle.html @@ -1 +1 @@ -Short Strangle | OptionCharts.net \ No newline at end of file +Short Strangle | OptionCharts.net \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml index 1886d75..1faacd6 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,40 +1,40 @@ -https://www.optioncharts.net2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/back-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/back-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-box-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-box-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/broken-wing-butterfly-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/broken-wing-butterfly-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/butterfly-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/butterfly-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-calendar-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-calendar-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-call2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-call2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-call-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-call-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/christmas-tree-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/christmas-tree-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/diagonal-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/diagonal-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/front-spread-with-calls2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/front-spread-with-puts2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/iron-butterfly2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/iron-condor2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-jelly-roll2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-jelly-roll2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-put2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-put2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-put-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-put-spread2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/poor-mans-covered-call2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/risk-reversal2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-straddle2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-straddle2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/long-strangle2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/short-strangle2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/synthetic-long2024-05-13T04:15:35.423Zweekly0.7 -https://www.optioncharts.net/synthetic-short2024-05-13T04:15:35.423Zweekly0.7 +https://www.optioncharts.net2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/back-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/back-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-box-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-box-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/broken-wing-butterfly-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/broken-wing-butterfly-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/butterfly-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/butterfly-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-calendar-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-calendar-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-call2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-call2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-call-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-call-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/christmas-tree-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/christmas-tree-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/diagonal-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/diagonal-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/front-spread-with-calls2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/front-spread-with-puts2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/iron-butterfly2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/iron-condor2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-jelly-roll2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-jelly-roll2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-put2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-put2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-put-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-put-spread2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/poor-mans-covered-call2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/risk-reversal2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-straddle2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-straddle2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/long-strangle2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/short-strangle2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/synthetic-long2024-05-13T11:52:34.711Zweekly0.7 +https://www.optioncharts.net/synthetic-short2024-05-13T11:52:34.711Zweekly0.7 \ No newline at end of file diff --git a/synthetic-long.html b/synthetic-long.html index 892746e..64bd157 100644 --- a/synthetic-long.html +++ b/synthetic-long.html @@ -1 +1 @@ -Synthetic Long | OptionCharts.net \ No newline at end of file +Synthetic Long | OptionCharts.net \ No newline at end of file diff --git a/synthetic-short.html b/synthetic-short.html index 69022ad..089275b 100644 --- a/synthetic-short.html +++ b/synthetic-short.html @@ -1 +1 @@ -Synthetic Short | OptionCharts.net \ No newline at end of file +Synthetic Short | OptionCharts.net \ No newline at end of file